Page 1 of 1

avoid the Return Code for dsjob command in shell script

Posted: Tue May 10, 2011 2:38 pm
by pratapsriram
I am trying to get the start time for a given job by running this command in a shell script.

Code: Select all

JOB_STARTDATE=`${BinFileDirectory}/dsjob -jobinfo $PROJECT $DSJOB|grep 'Job Start Time'|cut -d":" -f2`
echo $JOB_STARTDATE
The output is
Status code = 0
Mon Apr 25 10
How do I avoid gettting the
Status code = 0
in my result?