Quantcast
Viewing all articles
Browse latest Browse all 6251

Stderr in external command execution seems to get lost

After some initial puzzlement I've discovered that when you run external programs, only file stream 1 (STDOUT) is captured in the command.output method. Unfortunately, there is no error handle and redirection does not seem to work either (eg command -parm arg1 2>&1).

 

Do I need to write bash wrappers to redirect stderr, or is there a way to retrieve it from the result object?


Viewing all articles
Browse latest Browse all 6251


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>