call system command fotran 77
call system command fotran 77
(OP)
I want a program to call gnuplot a plot data that the program produces, but i don't know exactly how the call system comand works. Ideally i want something like
call system(gnuplot plot 'blabla.dat')
Thank you!
(i'm using fotran77 and the compiler f77)
call system(gnuplot plot 'blabla.dat')
Thank you!
(i'm using fotran77 and the compiler f77)





RE: call system command fotran 77
RE: call system command fotran 77
Cannot open load file 'plot'
line 0: util.c: No such file or directory
RE: call system command fotran 77
1) Change directory before making the system call. If you're using GFortran, the call is chdir. Other implemntations may have similar calls.
2) Use system to call a batch file which will go to the correct directory and call gnuplot.
RE: call system command fotran 77
RE: call system command fotran 77
1.- The file i'm trying to plot can't be in another directory because it's produced by the same program in the same one.
2.- I understand from the error message that system tries to load a file called 'plot' instead of entering the command plot to gnuplot.
I think that the syntax ("gnuplot plot blabla.dat") is wrong. I had already tried adding quotes like that or
Call system("gnuplot plot 'blabla.dat'")
and none of them work..
RE: call system command fotran 77
http://www.tek-tips.com/viewthread.cfm?qid=1618755
TTFN

FAQ731-376: Eng-Tips.com Forum Policies
RE: call system command fotran 77
RE: call system command fotran 77
Write the command into a batch file and then call the batch file.