Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Answer: How do I capture shell error messages from a remote host?

( #186540=categorized answer: print w/ replies, xml ) Need Help??

Q&A > network programming > How do I capture shell error messages from a remote host? contributed by kiseok7

just a way :

capture STDERR to file and `cat the file`

$stdout = $t->cmd("some_cmd 2> /tmp/error.tmp"); $stderr = $t->cmd("cat /tmp/error.tmp; rm /tmp/error.tmp");
i can't sure it is good answer =(

good luck!

Comment on Answer: How do I capture shell error messages from a remote host?
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-09-19 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (146 votes), past polls