stderr and the system() function

Vlatko Bečanović vlatko.becanovic at tobii.com
Thu Feb 21 02:42:08 CST 2008


When using the system() function the stderr can be seen printing to the
command window, but it's not possible to capture it as an output
argument of the system() function itself. The system() function only
returns a status code together with the stdout stream. 

Is it perhaps possible to capture, not only the stdout stream, but also
the stderr by adding an extra output argument to the system() function?
Is there any other way to save the stderr to a file and/or into a matlab
variable?

Many thanks,

Vlatko




More information about the Bug-octave mailing list