Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: sh.done - Function Up: sh - Tool Previous: sh - Constructor


sh.command - Function



Package utility
Module misc
Tool sh


execute command


Synopsis
command(command, timeout)



Description
Executes any Bourne shell command. Remember to escape any special characters which have meaning to the shell.



Arguments

command   Command line to be executed by Bourne shell
timeout   Timeout interval (seconds): 0 for no timeout
    Allowed: Int
    Default: 0



Returns
execution result record

Fields in the returned record are

lines
String array of output written by command, one string per line of output.
status
Integer valued exit status from command execution
errlines
Array of lines written to stderr by command





next up previous contents index
Next: sh.done - Function Up: sh - Tool Previous: sh - Constructor   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15