avoid the Return Code for dsjob command in shell script
Posted: Tue May 10, 2011 2:38 pm
I am trying to get the start time for a given job by running this command in a shell script.
The output is
Code: Select all
JOB_STARTDATE=`${BinFileDirectory}/dsjob -jobinfo $PROJECT $DSJOB|grep 'Job Start Time'|cut -d":" -f2`
echo $JOB_STARTDATE
How do I avoid gettting theStatus code = 0
Mon Apr 25 10
in my result?Status code = 0