[omake] How to capture both stdout and return code of shell command?
rudi.grinberg at gmail.com
rudi.grinberg at gmail.com
Sun Mar 6 00:22:40 GMT 2016
Hello,
I’ve made good use of shell-code to execute commands and capture their
return code but now I’d like to capture their stdout (and stderr if
possible) as well, rather than have it dumped on the screen.
Is there a simple way to accomplish this? I’ve RTFM’d but could only think
of convoluted ways that involve file redirection. I’m probably missing
something simple.
Thanks,
Rudi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/omake/attachments/20160305/aa2aa607/attachment.html>
More information about the Omake
mailing list