1SYSTEM(3) Library Functions Manual SYSTEM(3)
23
4
NAME
6system - issue a shell command
7
SYNOPSIS
9system(string)
10char *string;
11
DESCRIPTION
13System causes the string to be given to sh(1) as input as if the string
14had been typed as a command at a terminal. The current process waits
15until the shell has completed, then returns the exit status of the
16shell.
17
SEE ALSO
19popen(3S), execve(2), wait(2)
20
DIAGNOSTICS
22Exit status 127 indicates the shell couldn't be executed.
2324
25
26
7th Edition May 15, 1985 SYSTEM(3)