Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by kiseok7 (Beadle)
on Jul 31, 2002 at 17:13 UTC ( #186540=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > How do I capture shell error messages from a remote host? - Answer 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!

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[holli]: i just keep spamming
[holli]: writing a cb client in operl 6
[LanX]: operl?
[LanX]: 😅
[holli]: typo

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2017-09-23 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (272 votes). Check out past polls.

    Notices?