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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

system command error

Status
Not open for further replies.

flirt

Technical User
Dec 15, 2005
5
US
A lot of programs written in Fortran provide the "system" command, by which the shell command can be accessed. But I got error for this command. For example, in KUPLOT the command "system dir" is surposed to invoke the DOS shell command "dir", but the result is "operating system/shell error number: 127" and "error in operating system command -5". Please help me this error. The programs are compiled with g77.
 
Appears to work
Code:
      program tester
      print *, 'dir'
      call system ('dir')
      stop
      end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top