Page 1 of 1

Regarding EnvVariable

Posted: Tue Jun 17, 2008 5:32 am
by das_nirmalya
i want to use environment variable to specify the path, where the job create a log file through afterjob subroutine from job property.

i am using 1;$<env_var>/ as the input parameter in after job subroutine , but it is not working ,, pls tell me how can i fullfill the requirement

Re: Regarding EnvVariable

Posted: Tue Jun 17, 2008 1:38 pm
by Krazykoolrohit
das_nirmalya wrote: 1;$<env_var>/
Is this what you are writing in after-job subroutine? or is it a part of the command?

What does the above do?

Re: Regarding EnvVariable

Posted: Tue Jun 17, 2008 3:03 pm
by sreddy
Nirmalya


You can do like this. :idea:

Create an Environment variable $Projdef at DS Admin, put complete path where you kept the script.

That you have to use in JobProperty level
You can put at After Job Subroutine -- Input Value are.

Posted: Tue Jun 17, 2008 8:12 pm
by Minhajuddin
To use job parameters in before/after job subroutines. You need to enclose them in a pair of # symbols. And it's the same even with environment variables added in job parameters. For instance, If you want to pass the value of an environment variable "foo" (added in job parameters) to a dummy script in /tmp you need to use:

Code: Select all

/tmp/dummy.sh #$foo#

Posted: Tue Jun 17, 2008 8:44 pm
by ray.wurlod
What precisely do you mean by "it is not working"? Without that information I am loath potentially to waste my time answering the wrong question.

Re: Regarding EnvVariable

Posted: Tue Jun 17, 2008 11:05 pm
by das_nirmalya
Krazykoolrohit wrote:
das_nirmalya wrote: 1;$<env_var>/
Is this what you are writing in after-job subroutine? or is it a part of the command?

What does the above do?
yea , i have use this in after-job subroutine.