![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with return codes | ammu | Shell Programming and Scripting | 2 | 02-04-2008 11:57 AM |
| How do you Sum UNIX return codes | z1tt45uuprs7 | UNIX for Dummies Questions & Answers | 3 | 10-18-2006 08:46 AM |
| Return Codes | kris01752 | UNIX for Advanced & Expert Users | 3 | 09-25-2006 09:40 AM |
| Return codes | Bab00shka | UNIX for Dummies Questions & Answers | 4 | 02-02-2006 10:46 AM |
| Help with Return codes | leezer1204 | UNIX for Dummies Questions & Answers | 1 | 04-26-2005 09:10 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
unix return codes
Suppose I have a script which is monitoring a directory
whenever a file drops in that directory,it sends alert say I want to write a return code for the above script which on successful execution of script gives a return value Based on return code , I want to do initiate some jobs in other systems how to do that? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
This is a decision that is for you to take. The convention is that you return 0 on successful and -1 if not. If you have multiple exit statii (--cringe--), you can decide what exit status will stand for what.
|
||||
| Google The UNIX and Linux Forums |