Add copyright
[unix-history] / usr / src / lib / libc / stdlib / system.3
CommitLineData
929cacff 1.\" @(#)system.3 6.1 (Berkeley) %G%
6363d9ff 2.\"
929cacff 3.TH SYSTEM 3 ""
6363d9ff
KM
4.AT 3
5.SH NAME
6system \- 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
14causes the
15.I string
16to be given to
17.IR sh (1)
18as input as if the string had been typed as a command
19at a terminal.
20The current process waits until the shell has
21completed, then returns the exit status of the shell.
22.SH "SEE ALSO"
3e624ebc
KM
23popen(3S),
24execve(2),
25wait(2)
6363d9ff
KM
26.SH DIAGNOSTICS
27Exit status 127 indicates the shell couldn't be executed.