Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: invoking rsh and testing for success/failure

by ikegami (Patriarch)
on Apr 01, 2005 at 15:53 UTC ( [id://444224]=note: print w/replies, xml ) Need Help??


in reply to invoking rsh and testing for success/failure

if (`rsh ...` =~ /No match/) { die("File not found.\n"); }

`` returns the STDOUT of the command as a string instead of displaying it. If you need both STDOUT and STDERR, redirect STDERR to STDOUT (by addiging "2>&1" to the command).

Replies are listed 'Best First'.
Re^2: invoking rsh and testing for success/failure
by Anonymous Monk on Apr 01, 2005 at 17:21 UTC
    Thanks a bunch!! I finally figured it out and it works! really appreciate your help though. Have a great weekend! T

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://444224]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found