Page 1 of 1

parameter in the ExecCommand Activity Stage

Posted: Fri Jul 28, 2006 9:05 am
by fmartinsferreira
Is it possible to put a parameter in the ExecCommand Activity Stage? :roll:

Thanks,

Fernando

Posted: Fri Jul 28, 2006 9:15 am
by ArndW
Yes you can. The command line needs to be an executable and not contain any parameters, but I've done something like make the command line "sh -c " and the command line options then contain "#JobParameterWithUNIXCommand#"

Posted: Fri Jul 28, 2006 9:25 am
by chulett
Be aware that - depending on your version and platform - they may not work. It can be confusing as heck to debug because the command will log correctly with the parameters fully expanded, but the actual command executed will still have the 'unexpanded' parameter name(s) in it.

Test it first.

Posted: Fri Jul 28, 2006 9:31 am
by ArndW
Craig - do you remember offhand which won't work? I tried it on AIX and it did work, and know I've done it successfully on Windoze in the past.

Posted: Fri Jul 28, 2006 9:33 am
by fmartinsferreira
ArndW wrote:Yes you can. The command line needs to be an executable and not contain any parameters, but I've done something like make the command line "sh -c " and the command line options then contain "#JobParam ...
It's work! :lol:

Thanks a lot!

Fernando

Posted: Fri Jul 28, 2006 10:04 am
by chulett
I've had the problem here with HP-UX. Definitely saw it under 7.0.1, not sure I've checked again with 7.5.1A.

Posted: Fri Jul 28, 2006 10:25 am
by ArndW
Thanks for that info; I'll keep that in mind next time I play on HP-UX.

Posted: Sat Jul 29, 2006 12:23 am
by kumar_s
chulett wrote:I've had the problem here with HP-UX. Definitely saw it under 7.0.1, not sure I've checked again with 7.5.1A.
I have heard the same for the version 7.0. But fortunately, I haven't faced any such issue with the version so far.