|
|
1.1 ! root 1: .\" @(#)system.3 6.1 (Berkeley) 5/15/85 ! 2: .\" ! 3: .TH SYSTEM 3 "May 15, 1985" ! 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" ! 23: popen(3S), ! 24: execve(2), ! 25: wait(2) ! 26: .SH DIAGNOSTICS ! 27: 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.