in reply to How do I capture shell error messages from a remote host?
just a way :
capture STDERR to file and `cat the file`
good luck!
capture STDERR to file and `cat the file`
i can't sure it is good answer =($stdout = $t->cmd("some_cmd 2> /tmp/error.tmp"); $stderr = $t->cmd("cat /tmp/error.tmp; rm /tmp/error.tmp");
good luck!
In Section
Seekers of Perl Wisdom