Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Returning from a program

by Tomte (Priest)
on Aug 12, 2002 at 14:03 UTC ( #189492=note: print w/replies, xml ) Need Help??


in reply to Returning from a program

Well, as a shell programmer you could have guessed it:

exit <statuscode>

see perlfunc exit

your shell code may look like:

$my_perl_exec myprog.pl arg1 arg2 arg3 if [ "${?}" -eq "<exitcode1>" ] then blahblah else xxyyzz fi

regards,
tomte

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2022-05-23 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?