Is there any way to write a GUI under Ubuntu that one can work with gnuplot, octave and bash scripts together?
1 Answer
You'd have to make the GUI and call the scripts, be it octave, bash or gnuplot. You could probably make the plots in the GUI and forget octave. At the end I learned a little bit of ruby on rails to offer my fortran code on the cloud.
For example, You could use qt and call the octave function usino a system call. Or go web based and make an ajax call. There are just too many options, depending on which language/framework/libraries you use.
To make a script call from octave, see http://www.gnu.org/software/octave/doc/interpreter/Controlling-Subprocesses.html . There are many ways to do it. Depending on what you want, a mere
system("./my_script")
could do the job. If you need to get the response, there is info on that link. Otherwise, the script could put the output in a file that you could read later from octave.
If you want to get input in octave, so that you make something close to a very light weighted user interface, you could make a loop and inside ask for input. For example
while x>0
x = input("Enter an integer (0 for quiting), 5 for script")
if (x==5)
system("./my_script")
endif
endwhile
cdto octave's working directory.