Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

popen(3S)

execve(2)

wait(2)

SYSTEM(3)

NAME

system − issue a Shell command

USAGE

system(string)
char *string;

DESCRIPTION

System causes string to be sent to sh(1) as input, as if the string had been typed as a command at a terminal.  The current process waits until the Shell has completed, then returns the exit status of the Shell. 

DIAGNOSTICS

Exit status 127 indicates that the Shell couldn’t be executed. 

RELATED INFORMATION

popen(3S), execve(2), wait(2)

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