Page 1 of 1

Passing parameters in Execute cmd stage

Posted: Mon Oct 22, 2007 4:10 am
by arsheshadri
Hi,

I am trying to run a shell script (sample.ksh) in a Job Sequence using "Execute command activity"

Here I need to parameterise the Path of my shell script.

If I give #HOM_DIR#/sample.ksh, I am getting an error saying "Executable path cannot contain parameters (I have created a job parameter with the name HOM_DIR).

Please let me know how can I specify a parameter to run my script.

Thanks & Regards
Sheshadri

Posted: Mon Oct 22, 2007 5:12 am
by balajisr
In the Execute Command Stage:

Command:

sh

Parameters:

#HOM_DIR#/sample.ksh

Re: Passing parameters in Execute cmd stage

Posted: Mon Oct 22, 2007 5:27 am
by vikasjawa
hi,
As this is a ksh script, just confirm that you are using 'ksh -x' in the Command text box under ExecCommand Tab of the Execute Command Activity and #HOM_DIR#/sample.ksh along with the parameters your scripts needs in Parameters text box.

Posted: Mon Oct 22, 2007 7:37 am
by chulett
:? 'ksh' is fine by itself, no need for the '-x' option.

Posted: Thu Oct 25, 2007 3:31 am
by arsheshadri
[quote="chulett"]:? 'ksh' is fine by itself, no need for the '-x' option.[/quote]

Thanks everyone..it's working..my problem is solved.

Sheshadri