Page 1 of 1

Error runing Version 8 job from unix script

Posted: Tue Jun 30, 2009 4:23 am
by sjordery
Hi All,

I am trying to run a Version 8 parallel job from unix script.
Below is the script I am using.

---------------------------------------------------------------------
#! /usr/bin/sh
dshome=`cat /.dshome`;
export dshome
PATH=$PATH:$dshome/lib;
export PATH
. $dshome/dsenv

dsjob -run -param source_file=$1 MY_Project Job1
echo "finished"
------------------------------------------------------------------
This gives error message "dsjob: command not found" while running.

But the same script is working fine on the Data stage 7.5 PX box.
Any suggestion do I need to add anything to run the job on V8 server?

Posted: Tue Jun 30, 2009 4:27 am
by ArndW
the path to programs is in /bin, not /lib

Posted: Tue Jun 30, 2009 5:17 am
by sjordery
Thanks a lot ArndW.
The script worked fine after changing PATH=$PATH:$dshome/lib; to PATH=$PATH:$dshome/bin;

Regards,
Sj.

Posted: Tue Jun 30, 2009 5:19 am
by sjordery
Thanks a lot ArndW.
The script worked fine after changing PATH=$PATH:$dshome/lib; to PATH=$PATH:$dshome/bin;

Regards,
Sj.

Posted: Tue Jun 30, 2009 5:41 am
by nagarjuna
mark the post as resolved