SH(3F)
NAME
sh − fast execution of an sh shell command
SYNOPSIS
integer function sh (string)
character∗(∗) string
DESCRIPTION
The function sh gives string to the sh shell as input, as if the string had been typed as a command.
The shell is always the Bourne shell, sh(1).
The current process waits until the command terminates. The returned value is the exit status of the shell. See wait(2) for an explanation of this value.
For output files, the buffer is flushed to the actual file.
For input files, the position of the pointer is unpredictable.
The sh function is not MT-safe. Do not call it from FORTRAN MP programs.
FILES
libF77.a
SEE ALSO
BUGS
string cannot be longer than 1024 characters.
SunOS 5.0 — Last change: 07 July 1995