BSD 4_2 development
[unix-history] / usr / man / man3 / system.3
CommitLineData
bfb5c455
C
1.TH SYSTEM 3 "19 January 1983"
2.SH NAME
3system \- issue a shell command
4.SH SYNOPSIS
5.nf
6.B system(string)
7.B char *string;
8.fi
9.SH DESCRIPTION
10.I System
11causes the
12.I string
13to be given to
14.IR sh (1)
15as input as if the string had been typed as a command
16at a terminal.
17The current process waits until the shell has
18completed, then returns the exit status of the shell.
19.SH "SEE ALSO"
20popen(3S),
21execve(2),
22wait(2)
23.SH DIAGNOSTICS
24Exit status 127 indicates the shell couldn't be executed.