Red Hat Bugzilla – Bug 973138
RFE: sh & debug sh should be able to capture all output and error return code
Last modified: 2014-09-07 19:06:42 EDT
Description of problem:
12:00 < infernix> rwmjones: so one thing that i'm doing, for which i need that debug sh
12:00 < infernix> i'm running a custom tool and i need to capture its output and its return code
12:01 < infernix> it's a proprietary tool, statically compiled
Notice that because infernix is using a proprietary program,
adding it to the libguestfs API isn't really a good alternative.
"debug sh" -- or an additional command -- should be able to
capture all the output (even very large > 4 MB output) plus
the return code and return it all to the caller.
It's not clear if stdout and stderr should be captured separately.
This might be useful in some circumstances.
Version-Release number of selected component (if applicable):
This also happened for a user trying to do:
sh "rpm -Va"