Hello
I'm using Fortran F77 with Operating System LINUX SUSE 9.3
The line in Fortran Code:
..
call system ('/prog.pl')
..
This line brings Errors at '/p bei compiling.
Can I running an executable Program in Fortran?
Is the Syntax wrong?
I don't know much more about unix than "ls" and "pwd", but between the quotes you should type exactly the same as on the commandline, try whether it works by typing it by hand on the commandline first. I guess you need to add a dot only './prog.pl' or just 'prog.pl' if you're in './' anyway.
I also only know rudimentary Linux, but I think you need it to be ./prog.pl in order to run a script in the current folder; I don't think that prog.pl would work, because it searches for it in /bin as though it were on the path. I could be wrong, of course, and I will gladly be corrected if I am.
--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.