SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Determing if a .ksh failed

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Determing if a .ksh failed
Author Message
rbeyea



Joined: 13 Jul 2011
Posts: 2
Country: United States

Post Determing if a .ksh failed Reply with quote
How can I tell if a ksh fails?

I have a text.ksh

cd /JDAapps/DM/dm_scripts
./test.ksh


It contains:
echo “Sample Test”
exit 102

When I run it the notification just email started and finished. I have also checked job error.

The person that created the script said that his scripts will return 0 or 512 on success.
I should be able to get a notification of failed if I get anything other then 0 or 512. In my test case it should show failed for the 102.

Thanks!!
Wed Jul 13, 2011 11:42 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6508

Post Reply with quote
Simple set the job to check for specific exit code or rule. By default any exit code is ok.
Thu Jul 14, 2011 10:45 am View user's profile Send private message
rbeyea



Joined: 13 Jul 2011
Posts: 2
Country: United States

Post Reply with quote
ypu said: Simple set the job to check for specific exit code or rule. By default any exit code is ok.

is there direction or a sample?
Thu Jul 14, 2011 11:09 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6508

Post Reply with quote
Hmm... I'm sorry I don't get it. This seems absolutely obvious to me.

Step 1: select job type
Step 2: select program or batch file name or document name like .mdb file
Step 3: enter exit code
Step 4: Select queue, etc...
and so on...

Am I missing something?
Thu Jul 14, 2011 6:49 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 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
Design by Freestyle XL / Flowers Online.