can the absolute path of a script be a variable ?

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
mouni
Charter Member
Charter Member
Posts: 49
Joined: Tue Jul 11, 2006 11:30 pm

can the absolute path of a script be a variable ?

Post by mouni »

I'm trying to parameterise the path of the script being called in execute command activity . But it is not allowing to have a parameter in the command option.

Is there any other alternative for it making it a variable ?

Ex : /home/dsadm/test_script.sh to #SCRIPT_DIR#test_script.sh
Pagadrai
Participant
Posts: 111
Joined: Fri Dec 31, 2004 1:16 am
Location: Chennai

Re: can the absolute path of a script be a variable ?

Post by Pagadrai »

mouni wrote:I'm trying to parameterise the path of the script being called in execute command activity . But it is not allowing to have a parameter in the command option.

Is there any other alternative for it making it a variable ?

Ex : /home/dsadm/test_script.sh to #SCRIPT_DIR#test_script.sh
Hi,
I dont think we can use a paramter in the command option.

You can try this:
Create a basic routine which will first 'prepare' the command using the
parameters passed and then execute the command in the routine.
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

you can try giving only sh in the command and absolute path of the shell script to be executed in the argument .
Nag
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Exactly... or whatever your shell of choice would be. For Windows, the DOS 'start' command works from what I hear.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply