Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ system(3F) — Sun FORTRAN 1.3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

execve(2)

wait(2)

system(3)

SYSTEM(3F)  —  FORTRAN LIBRARY ROUTINES

NAME

system − execute a SunOS command

SYNOPSIS

integer function system (string)
character∗(∗) 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.

Note that historically cc and f77 developed with different assumptions: if cc calls system the shell is always the Bourne shell, whereas if f77 calls system which shell gets called depends on the environment variable SHELL . 

WARNING: System flushes all open files. 
For output files, the buffer is flushed to the actual file.
For input files, the position of the pointer is unpredictable.

FILES

/usr/lang/SC0.0/libF77.a

SEE ALSO

execve(2), wait(2), system(3)

BUGS

String can not be longer than 1024 characters. 

Sun Release 4.1  —  Last change: 24 January 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026