May-30-2018, 05:54 AM
a script i might need to write is to run another command is to capture both the stdout and stderr streams from that command, separately, with the order and interleaving preserved. so if that command writes to stderr first then to stdout, my script will see exactly what that command did. a test script would just copy the input to the output, so the command's stderr output goes to stderr, and the command's stdout goes to stdout.
does this sound too complicated?
does this sound too complicated?