Commit | Line | Data |
---|---|---|
929cacff | 1 | .\" @(#)system.3 6.1 (Berkeley) %G% |
6363d9ff | 2 | .\" |
929cacff | 3 | .TH SYSTEM 3 "" |
6363d9ff KM |
4 | .AT 3 |
5 | .SH NAME | |
6 | system \- issue a shell command | |
7 | .SH SYNOPSIS | |
8 | .nf | |
9 | .B system(string) | |
10 | .B char *string; | |
11 | .fi | |
12 | .SH DESCRIPTION | |
13 | .I System | |
14 | causes the | |
15 | .I string | |
16 | to be given to | |
17 | .IR sh (1) | |
18 | as input as if the string had been typed as a command | |
19 | at a terminal. | |
20 | The current process waits until the shell has | |
21 | completed, then returns the exit status of the shell. | |
22 | .SH "SEE ALSO" | |
3e624ebc KM |
23 | popen(3S), |
24 | execve(2), | |
25 | wait(2) | |
6363d9ff KM |
26 | .SH DIAGNOSTICS |
27 | Exit status 127 indicates the shell couldn't be executed. |