CONTROL M jobs getting failed, but successfull in backend

Everything about Control-M agents installation or setup.
Post Reply
User avatar
nakul
Nouveau
Nouveau
Posts: 29
Joined: 09 May 2010 12:00

CONTROL M jobs getting failed, but successfull in backend

Post by nakul » 11 May 2010 1:37

Hi All,

i am facing a problem with jobs , actually in control m jobs are getting failed but the task is completing successfully of that script which i am executing through job , belwo is the script i am executing, please suggest if any knows the cause, also i want to highlight previosuly the same jobs were executing successfully in control M also :?

#!/bin/ksh
cd $NCSHOME/bin
aaxsm802 ptsb022


Regards,
Nakul

User avatar
fafa1975
Nouveau
Nouveau
Posts: 31
Joined: 18 Mar 2010 12:00

Post by fafa1975 » 12 May 2010 2:22

Hi,
You can try to add an exit value to script:

#!/bin/ksh
cd $NCSHOME/bin
aaxsm802 ptsb022
exit 0

If the workaround doesn't work, you should try to understand what the script/binary aaxsm802.
If it is a script it could help set it in debug mode (set -x).

Regards,
Fabrizio

User avatar
nakul
Nouveau
Nouveau
Posts: 29
Joined: 09 May 2010 12:00

Post by nakul » 12 May 2010 4:54

HI Fabrizio,

Thanks for the suggestion, i know about the exit code, previously these scritps were running successfully through controlm without any exit code i would like to know the reason or any suggestion :?: , thanks a lot.
nakul

baralem

Post by baralem » 12 May 2010 6:06

If the jobs is cancelling is probably because the return code of "aaxsm802 ptsb022" isn't 0.

Try this to check aaxsm802 return code:

#!/bin/ksh
cd $NCSHOME/bin
aaxsm802 ptsb022
echo $?

regards
martin

User avatar
nakul
Nouveau
Nouveau
Posts: 29
Joined: 09 May 2010 12:00

Post by nakul » 13 May 2010 11:19

hey fabrizio/baralem,

yes i have tried it and working ....thanks a fot the help.
:)
nakul

Post Reply