Commit | Line | Data |
---|---|---|
bd47a035 DR |
1 | .TH SYSTEM 3 |
2 | .SH NAME | |
3 | system \- issue a shell command | |
4 | .SH SYNOPSIS | |
5 | .B system(string) | |
6 | .br | |
7 | .B char *string; | |
8 | .SH DESCRIPTION | |
9 | .I System | |
10 | causes the | |
11 | .I string | |
12 | to be given to | |
13 | .IR sh (1) | |
14 | as input as if the string had been typed as a command | |
15 | at a terminal. | |
16 | The current process waits until the shell has | |
17 | completed, then returns the exit status of the shell. | |
18 | .SH "SEE ALSO" | |
19 | popen(3), | |
20 | exec(2), wait(2) | |
21 | .SH DIAGNOSTICS | |
22 | Exit status 127 indicates the shell couldn't be executed. |