You got it backwards. In UNIX, exit(0) means success while any other exit value is false. Usually different status number indicate different errors. For example exit(1) if you cannot open a file, and exit(2) if network unreachable, and so on.
Hope this helps,,,
Aziz,,,
In reply to Re: exit EXPR
by abstracts
in thread exit EXPR
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |