Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call System sytax in Fortran F77

Status
Not open for further replies.

pbwww

Programmer
Sep 3, 2010
1
DE
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?

Thanks for your help.
Peter
 
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.
 
You may need to use
Code:
call system ('/usr/bin/perl ./prog.pl')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top