I execute a remote command thru ssh and I need to parse the output of that command. The remote stdout/stderr are forwarded fine by ssh back to my local box on the stdout/stderr of my local ssh command. However, this fails when ssh multiplexes its own status/error messages on my local stdout/stderr.
Is there a way to tell my local ssh command to send its own messages to a local file ? Or do I need to make my remote commands send their own outputs to a pair of remote files and then scp them back to parse them safely ?