Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: using exit and number 1 at end of file

by TexasTess (Beadle)
on Jun 09, 2003 at 08:11 UTC ( #264265=note: print w/replies, xml ) Need Help??

in reply to using exit and number 1 at end of file

At work we commonly use "exit" as a method of telling the calling party the status of the exit. exit 0 is normal, exit -1 on an error. We have various other programs written in other languages that call perl scripts. If they get a negative value in the exit they know there was an issue with the script and report it in a log or something similar. The values are arbitrary, it all depends on what you expect to be an error free exit versus what you expect to indicate an error.

It's all about love; What you'd do to love, and what you'd love to do -- Katherine Moody
  • Comment on Re: using exit and number 1 at end of file

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2023-09-27 09:33 GMT
Find Nodes?
    Voting Booth?

    No recent polls found