BSD 3 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Sat, 24 Nov 1979 18:40:58 +0000 (10:40 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Sat, 24 Nov 1979 18:40:58 +0000 (10:40 -0800)
Work on file usr/man/man3/system.3

Synthesized-from: 3bsd

usr/man/man3/system.3 [new file with mode: 0644]

diff --git a/usr/man/man3/system.3 b/usr/man/man3/system.3
new file mode 100644 (file)
index 0000000..be862e3
--- /dev/null
@@ -0,0 +1,22 @@
+.TH SYSTEM 3
+.SH NAME
+system \- issue a shell command
+.SH SYNOPSIS
+.B system(string)
+.br
+.B char *string;
+.SH DESCRIPTION
+.I System
+causes the
+.I string
+to be given to
+.IR  sh (1)
+as input as if the string had been typed as a command
+at a terminal.
+The current process waits until the shell has
+completed, then returns the exit status of the shell.
+.SH "SEE ALSO"
+popen(3),
+exec(2), wait(2)
+.SH DIAGNOSTICS
+Exit status 127 indicates the shell couldn't be executed.