system(3f)

Name
system - execute operating system command

Syntax
integer system, retval
character*len string
external system
retval = system ( string )

Description
The function system gives string to your shell as input, as if the string had been typed as a command. If the environment variable SHELL is found, its value will be used as the command interpreter (shell); otherwise sh (1) is used.

The current process waits until the command terminates. The returned value will be the exit status of the shell. See wait(2) for an explanation of this value.

Historically cc and f77 developed with different assumptions:
If cc calls system the shell is always the Bourne shell.
If f77 calls system which shell gets called depends on environment variable SHELL .

Files
libU77.a

See Also
execve(2), wait(2), system(3), sh(1)