Strange problem with crontab scheduling....

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
meet_deb85
Premium Member
Premium Member
Posts: 132
Joined: Tue Sep 04, 2007 11:38 am
Location: NOIDA

Strange problem with crontab scheduling....

Post by meet_deb85 »

Hi All,

I have a script to run a datastage job --/etlstg/Ageing/scripts/crontest.sh
with contents : -

#!/sbin/ksh
. /dshome/Ascential/DataStage/DSEngine/dsenv
dsjob -run -wait -mode RESET MIS db2test
dsjob -run -warn 1000 -jobstatus -wait -mode NORMAL MIS db2test


When I am running it through the command line sh /etlstg/Ageing/scripts/crontest.sh
Its running perfectly...

But When I am scheduling it through crontab -e its not running:-

02 10 * * * sh -x /etlstg/Ageing/scripts/crontest.sh

and any other simple UNIX script is runing perfectly through crontab.

Thanks in advance ... I need some help urgently
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

"02 10 * * *" says to run it at 10:02AM every day. Is it not running then? I would suggest redirecting std out & err to a file to see if it is running then and something is going wrong.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply