## unix ('cmd') ## Execute a system command if running under Unix. Do nothing if running ## under a different operating system. The command output will be echoed ## to the console. ## ## [status, text] = unix ('cmd', '-echo') ## Capture the output and exit status of a command. The command output ## will not be echoed unless '-echo' is specified. ## ## [status, text] = unix ('cmd 2>&1') ## Captures stderr as well as stdout. ## ## unix ('cmd &') ## Runs cmd in the background, returning immediately to Octave. ## This program is granted to the public domain. ## PKG_ADD: mark_as_command unix function unix