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