xref: /original-bsd/share/man/man3f/system.3 (revision c3e32dec)
Copyright (c) 1983, 1993
The Regents of the University of California. All rights reserved.

%sccs.include.proprietary.roff%

@(#)system.3 8.1 (Berkeley) 06/05/93

SYSTEM 3F ""
C 5
NAME
system - execute a \s-2UNIX\s0 command
SYNOPSIS
integer function system (string)

character*(*) string

DESCRIPTION
System causes string to be given to your shell as input as if the string had been typed as a command. If environment variable SHELL is found, its value will be used as the command interpreter (shell); otherwise sh (1) is used.

The current process waits until the command terminates. The returned value will be the exit status of the shell. See wait (2) for an explanation of this value.

FILES
"SEE ALSO"
exec(2), wait(2), system(3)
BUGS
String can not be longer than NCARGS-50 characters, as defined in < sys/param.h >.