hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Success and Failure return codes from UNIX shell scripts

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions
View previous topic :: View next topic  
Author Message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Tue Aug 24, 2010 4:29 pm    Post subject: Reply with quote

yes, there is a task sequence task that can run 2 tasks in sequence . the second one can run only if exit code= 0 etc..

you would have to 3 tasks.. one command task for each script and the task sequence task to run the 2 tasks.
Back to top
View user's profile Send private message
melvin
Site Admin


Joined: 25 May 2006
Posts: 635
Location: Santa Barbara, california

PostPosted: Thu Aug 26, 2010 8:42 pm    Post subject: Reply with quote

check the programming manual. there is normally a function to set the exit code.
In windows batch files , it is
SET ERRORLEV = 1
In unix sh scripts, it is
exit 1
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group