Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ system(3f) — Ultrix FORTRAN 1.0 RISC

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

wait(2)

system(3)

system(3f)  —  RISC

NAME

system − execute a UNIX command

SYNTAX

integer function system ( string )
character*(*) string

DESCRIPTION

The system function causes the specified string to be given 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 is used.

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

RESCTICTIONS

The string can not be longer than NCARGS−50 characters, as defined in <sys/param.h>.

FILES

/usr/lib/libU77.a

SEE ALSO

wait(2), system(3)

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