home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


system

system 
list

Executes any program on the system for you. It does exactly the same thing as exec list except that it does a fork first, and then, after the exec , it waits for the exec ed program to complete. That is, it runs the program for you, and returns when it's done, unlike exec , which never returns (if it succeeds). Note that argument processing varies depending on the number of arguments, as described for exec . The return value is the exit status of the program as returned by the wait(2) call. To get the actual exit value, divide by 256. (The lower eight bits are set if the process died from a signal.) See exec .


Previous: Reference: sysseek Perl in a Nutshell Next: Reference: syswrite
Reference: sysseek Book Index Reference: syswrite

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.