10 More Discussions You Might Find Interesting
The standard return code when everything goes right is 0, but what about using any other number something happened? Are there "ranges" depending on the kind of problem you want to express or is totally up to the programmer? (3 Replies)
Discussion started by: Tribe
2. Shell Programming and Scripting
In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Discussion started by: ginrkf
3. Shell Programming and Scripting
mailx -s " MESSAGE " firstname.lastname@example.org < $file
Could you let me know if the pattern is not found will the script exit. (8 Replies)
Discussion started by: bprabhukumar
4. UNIX for Dummies Questions & Answers
which command in mail will not remove deleted messages from my mailbox when i exit? (0 Replies)
Discussion started by: JamieMurry
5. UNIX for Dummies Questions & Answers
I use a Mac and need to 'echo' a code in >> /etc/hosts
Where is: /etc/hosts?
And how do I do : exit 0 Does : 'fi' mean something too?
:confused:Thanks for any help, Jacqrav:confused: (1 Reply)
Discussion started by: jacqrav
6. Shell Programming and Scripting
I am running HP-UX & ksh
I have several validation programs that scan log files for error messages.
One of these files scan 3 diff files, thus I have the exit value in a variable and depending on which log-file I am scanning the value changes.
I am not getting the value I expect but a... (1 Reply)
Discussion started by: vslewis
7. Shell Programming and Scripting
even though I use exit in my first scripts, I am not sure exactly about exit codes.I know there is a relation between return and exit codes, exit 0 means it returned a 0 to indicate there is no error at the end of this point.
But what does it mean:
exit 1 , probably there was an error, OK... (2 Replies)
Discussion started by: xramm
What is the difference between using exit(0) and exit(1) to exit a program? Which should I use? (9 Replies)
Discussion started by: enuenu
9. Shell Programming and Scripting
I am confused about When and where to use exit 0 and exit 1 ...
Thanks (2 Replies)
Discussion started by: dhananjaysk
10. UNIX for Dummies Questions & Answers
I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747