[status,
output] = shell(command, return_output, type)
¶Execute a command within the POSIX shell on WIN32 systems with Msys. On Unix like systems, shell is equivalent to Octave’s builtin system function.
command … command line to be passed to sh after -c
return_output … return the output of the command as a string
type … one of "async", "sync"
[status, output] = shell("ls -lhF .", true, "sync");
The following code
[status, output] = shell("octave-config --version", true, "sync")
Produces the following output
status = 0 output = 8.4.0
Package: mboct-octave-pkg