Hi all,
I am confused about When and where to use exit 0 and exit 1 ...
Thanks
Hi all,
I am confused about When and where to use exit 0 and exit 1 ...
Thanks
those are indicators to the external environment abt the status of execution of the program ( child's indication to parent )
you could map any of the return codes to {0, 1} to either SUCCESS or FAILURE
but convention is,
0->SUCCESS
1->FAILURE
exit 0 : normal exit (Program Success)
exit 1 : forced Exit (Program contains error and has to be terminated)