The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-26-2006
Registered User
 

Join Date: Dec 2005
Posts: 2
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?
Reply With Quote
Forum Sponsor
  #2  
Old 01-26-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0