|
|
1.1 root 1: .TH SYSTEM 3 "19 January 1983"
2: .SH NAME
3: system \- 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
11: causes the
12: .I string
13: to be given to
14: .IR sh (1)
15: as input as if the string had been typed as a command
16: at a terminal.
17: The current process waits until the shell has
18: completed, then returns the exit status of the shell.
19: .SH "SEE ALSO"
20: popen(3S),
21: execve(2),
22: wait(2)
23: .SH DIAGNOSTICS
24: Exit status 127 indicates the shell couldn't be executed.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.