Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: invoking rsh and testing for success/failure

by RazorbladeBidet (Friar)
on Apr 01, 2005 at 16:55 UTC ( #444237=note: print w/replies, xml ) Need Help??


in reply to invoking rsh and testing for success/failure

Alternatively, you can check the return code of the execution. (see perlvar)
my $cmd = "rsh $file"; # or whatever my $output = qx/$cmd/; # qx// is the same as `` my $rc = $?; # $? is a special Perl variable if ( $rc ) { print STDERR "No Match\n"; # you just want to print and continue, ri +ght? }
--------------
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2023-03-24 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?