BSD 4_2 development
[unix-history] / usr / man / man3 / system.3f
CommitLineData
5463bb6a
C
1.TH SYSTEM 3F "18 July 1983"
2.UC 4
3.SH NAME
4system \- execute a \s-2UNIX\s0 command
5.SH SYNOPSIS
6.B integer function system (string)
7.br
8.B character*(*) string
9.SH DESCRIPTION
10.I System
11causes
12.I string
13to be given to your shell
14as input as if the string had been typed as a command.
15If environment variable
16.B SHELL
17is found, its value will be used as the command interpreter (shell);
18otherwise
19.IR sh (1)
20is used.
21.PP
22The current process waits until the command terminates.
23The returned value will be the exit status of the shell.
24See
25.IR wait (2)
26for an explanation of this value.
27.SH FILES
28.ie \nM /usr/ucb/lib/libU77.a
29.el /usr/lib/libU77.a
30.SH "SEE ALSO"
31exec(2), wait(2), system(3)
32.SH BUGS
33.I String
34can not be longer than NCARGS\-50 characters, as defined in
35.RI < sys/param.h >.