Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Pipe and return status through an "ssh"

by Crackers2 (Parson)
on Jun 10, 2008 at 18:54 UTC ( [id://691308]=note: print w/replies, xml ) Need Help??


in reply to Pipe and return status through an "ssh"

As the previous reply hints at, it has nothing to do with the ssh and everything with the ||. You can verify that it behaves the same way on a shell command line:

:/tmp/t # false; echo $? 1 :/tmp/t # false || echo FAIL; echo $? FAIL 0

So either just remove the || echo FAIL part, or make it something like || { echo FAIL; exit 1 }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://691308]
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 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found