Navigation

Operators and Keywords

Function List:

C++ API

: unix ("command")
: status = unix ("command")
: [status, text] = unix ("command")
: […] = unix ("command", "-echo")

Execute a system command if running under a Unix-like operating system, otherwise do nothing.

Octave waits for the external command to finish before returning the exit status of the program in status and any output in text.

When called with no output argument, or the "-echo" argument is given, then text is also sent to standard output.

See also: dos, system, isunix, ismac, ispc.

Package: octave