Page 1 of 1

-file option in the dsjob

Posted: Tue Oct 05, 2004 8:01 am
by kishorchitra
Hi,

I am trying to run the dsjob command through unix script, as I don't wanna hard code userid and password, I want to use the -file parameter and the file contains the userid and passwaord details. somehow I am not able to get it to work. Any help?

My dsjob command looks like below.

$SCRIPTPATH/dsjob -file ds_login.env -run -wait -param source=$source $project_name $jobname.

and my ds_login_env looks like below:

server_name,userid,password


What am I doing wrong above?

I appreciate your help in advance.

Thanks,
Kishor

Posted: Tue Oct 05, 2004 9:04 am
by chulett
Use the full pathname to the file.

Posted: Tue Oct 05, 2004 9:20 am
by chulett
That's true... had to go check my scripts to verify that. Keep in mind the fact that you can have one "central" location for information like this. The file can contain multiple lines if you have multiple servers.