Page 1 of 1

Passing Parameter - Command Line

Posted: Thu Mar 22, 2007 8:46 am
by DeepakCorning
I m trying to run a job from command line using dsjob.

The job requires two parameters as input and the type of those two parameters are Path and List. Is there a way to pass values to these two in command line ? Right now my command looks like --

dsjob -server <server_name> -run -param 'param1' = 'value1' -param 'param2' = 'value2' -jobstatus <Project_name> <job_name>

I am getting the error - Invalid Arguement when I try to run the above command.

Posted: Thu Mar 22, 2007 8:49 am
by chulett
No spaces around the equal signs, please.

Posted: Thu Mar 22, 2007 9:06 am
by DeepakCorning
Thank you !! It worked , Had to remove the inverted commas as well (i think the reason for that was becoz the parameter types were not strings. Not quite sure , but now its working.