Page 1 of 1

dsjob command in LINUX - 'command not found' error

Posted: Fri Mar 27, 2009 11:37 am
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

Posted: Fri Mar 27, 2009 11:46 am
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: