system - execute a UNIX command
integer function system (string)
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.
SEE ALSO exec(2), wait(2), system(3)BUGS
String can not be longer than NCARGS-50 characters, as defined in <sys/param.h>.
4.2 Berkeley Distribution May 15, 1985 SYSTEM(3F)
Check Out this Related Man Page
SYSTEM(3) BSD Library Functions Manual SYSTEM(3)NAME
system -- pass a command to the shell
Standard C Library (libc, -lc)
system(const char *string);
The system() function hands the argument string to the command interpreter sh(1). The calling process waits for the shell to finish execut-
ing the command, ignoring SIGINT and SIGQUIT, and blocking SIGCHLD.
If string is a NULL pointer, system() will return non-zero if the command interpreter sh(1) is available, and zero if it is not.
The system() function returns the exit status of the shell as returned by waitpid(2), or -1 if an error occurred when invoking fork(2) or
waitpid(2). A return value of 127 means the execution of the shell failed.
SEE ALSO sh(1), execve(2), fork(2), waitpid(2), popen(3)STANDARDS
The system() function conforms to ISO/IEC 9899:1990 (``ISO C90'') and is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
BSD June 4, 1993 BSD
I'm a newbie so I'm not sure if I'm posting this in the right section... if I didn't, please forgive me :)
I've been looking all over the web for information on system administration. I'd like to become a Unix System Administrator but I want to find some more info about the job. Can someone please... (54 Replies)
I have been trying to boot an image (.IMG) using qemu, for quite some time now and i can't seem to get it to work. I've been able to boot from the Windows XP CD, the Debian iso image, etc, so I know qemu is configured properly and is working. But when it come to booting an image that I... (34 Replies)
I have a legacy system that is running on SCO OpenServer 5.0.6, and the hardware is becoming a little sketchy. I replaced the hard drive about a year ago, and was able to come back from a tape backup of my entire system. I have been successful with building a VM with VMware Workstation,... (42 Replies)
Today I mapped out the new badging system using FA icons, Beta 1 in no particular order except a 6 x 8 grid:
The prototype HTML code for this layout:
... (38 Replies)
What is your favorite Linux distro?
and possibly why?
Personally, I have Fedora 3 on my computer. I have used Ubuntu and Slackware, too. But I think I liked Ubuntu more, maybe because of its speed and easy installation of packages. (192 Replies)