Page 1 of 1

Command Line in Crontab

Posted: Tue Sep 20, 2005 6:45 am
by btmorris3
I have a DataStage server set up on an AIX machine, and when I schedule a job, I typically get something such as the following in the crontab:

/u009/etl/Ascential/DataStage/Projects/Eclipse/dsr_sched.sh /u009/etl/Ascential/DataStage/Projects/Eclipse /u009/etl/Ascential/DataStage/DSEngine ImportRejects 0/0/1/0/0 1 >/dev/null 2>&1 #DSjobDS DSJ.Eclipse.55.1

Now my UNIX admin wants an explanation of each of these parameters and he's particularly interested in the re-directs. I looked in the dsr_sched.sh file and followed some of the logic there but it didn't shed much light. Can anybody explain this command line to me?

Thanks

Posted: Tue Sep 20, 2005 7:28 am
by chulett
I'm sorry, but if your UNIX admin doesn't understand what those two redirects are doing - you may need a new admin. :?

Suggest you take a peek at the dsr_sched.sh script it mentions, that should shed some light on what's going on.

Posted: Tue Sep 20, 2005 4:51 pm
by ray.wurlod
u009/etl/Ascential/DataStage/Projects/Eclipse/dsr_sched.sh
/u009/etl/Ascential/DataStage/Projects/Eclipse project name
/u009/etl/Ascential/DataStage/DSEngine location of $DSHOME
ImportRejects job name
0/0/1/0/0 control values for wave, logging
1 run mode (1 = normal, 2 = validate, 3 = reset)
>/dev/null discard stdout
2>&1 discard stderr too
#DSjobDS
DSJ.Eclipse.55.1 record in RT_CONFIGnn containing parameter values

Posted: Tue Sep 20, 2005 4:54 pm
by chulett
... or you could just wait for Ray to tell you. :roll: :lol:

Posted: Tue Sep 20, 2005 5:13 pm
by ray.wurlod
If your UNIX admin doesn't understand what those two redirects are doing - you may need a new admin or to demand to see your admin's certification!