Navigation

Operators and Keywords

Function List:

C++ API

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

Execute a system command if running under a Windows-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: unix, system, isunix, ismac, ispc.

Package: octave