dsjob command in LINUX - 'command not found' error

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
praveensuss
Participant
Posts: 12
Joined: Thu Sep 20, 2007 2:22 pm

dsjob command in LINUX - 'command not found' error

Post by praveensuss »

Hi,

This is the first time I am trying to use dsjob command to execute job from LINUX.

I tried a simple exercise to execute a job using dsjob command. But it says dsjob command not found. But I checked for dsjob in the path and it exists.
--------------------------
-bash-3.2$ pwd
/opt/IBM/InformationServer/Server/DSEngine/bin
-bash-3.2$ ls dsjob
dsjob
-bash-3.2$
--------------------------


But when I execute
-bash-3.2$ dsjob -server <server name> -run -mode NORMAL <project name> <job name>
It says -bash: dsjob: command not found

What could be the reason ?

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How much UNIX experience do you have? Or any other command line O/S for that matter? You either need to make sure the directory the command is in is in your $PATH or that you fully path the command or (in this case) since you're parked in the same directory it lives in, stick a "dot slash" in front of it:

Code: Select all

-bash-3.2$ ./dsjob -server <server name> -run -mode NORMAL <project name> <job name> 
The "./" tells it to look in the current directory.

Please don't take this the wrong way, but I see this more and more with people who have used nothing but a GUI interface. Us old farts who had to learn stuff like this back when there weren't no fancy Winders are dying off... where will the world be then? :lol:
-craig

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