Not able to pass the PASS PARAMETER to the script

Everything about Control-M Server installation or setup.
Post Reply
User avatar
Razique
Nouveau
Nouveau
Posts: 23
Joined: 20 Nov 2009 12:00

Not able to pass the PASS PARAMETER to the script

Post by Razique » 23 Aug 2011 8:52

Need a quik sugesstion,

I have shell script which accepts current date 12/08/2011 as a parameter, til now operations were running this job by manually , script.sh 12/08/2011. and when i tried to this from control-M , as command type job,

path/script %%PARAM1 : %%PARAM1=%%DD.%%MM.%%YYYY

it is resolving the date paramter and i can very well see in the sysout as well,

path/script 12/08/2011, however down the sysout i can see as

Please input date dd/mm/yyyy. not sure why this is happening and scrpt is executing as it should be.

we are able to run this script with parameter manually.


ANy idea guys, please reply ASAP..


Thanks in Advance

User avatar
Razique
Nouveau
Nouveau
Posts: 23
Joined: 20 Nov 2009 12:00

adding more to this

Post by Razique » 24 Aug 2011 9:28

all these days ops people used to run by manually, like as followings

./scriptname then it will prompt for a date to be passed, now when i run on like ./scriptname DD/MM/YYYY it is not working,

Any idea on this?

User avatar
Hagar
Nouveau
Nouveau
Posts: 27
Joined: 19 Feb 2009 12:00

Post by Hagar » 25 Aug 2011 9:17

I would guess it has something to do with / in unix is a function, not a "letter" try to use // instead

Post Reply