|
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
rbeyea
Joined: 13 Jul 2011 Posts: 2 Country: United States |
|
Determing if a .ksh failed |
|
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 |
|
|
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7857
|
|
|
|
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 |
|
|
rbeyea
Joined: 13 Jul 2011 Posts: 2 Country: United States |
|
|
|
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 |
|
|
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7857
|
|
|
|
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 |
|
|
|
|
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
|
|
|