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


system

system( command )

Function that executes the specified command and returns its status. The status of the executed command typically indicates success or failure. A value of 0 means that the command executed successfully. A nonzero value indicates a failure of some sort. The documentation for the command you're running will give you the details.

The output of the command is not available for processing within the awk script. Use command | getline to read the output of a command into the script. {N}


Previous: Reference: substr UNIX in a Nutshell: System V Edition Next: Reference: systime
Reference: substr Book Index Reference: systime

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System