[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] environment and argument variables



On 08/18/2017 06:06 AM, Hervà Lemaitre wrote:
Dear all,

I'm playing around with the environment and argument variables but I do not get what i want. I tried:

UniverseÂÂÂ = vanilla
GetenvÂÂÂÂÂÂÂ = True
environment = subject=foo
Executable= /bin/echo
Arguments = $ENV(subject)
OutputÂÂÂÂÂÂÂ = test.out
ErrorÂÂÂÂÂÂÂ = test.err
LogÂÂÂÂÂÂÂ = test.log
Queue

What's happening here is that the line

environment = submit=foo

Sets the environment variable for the job when it runs on the worker node.

$ENV(subject)

Gets the environment from the submit machine at the time condor_submit is run, and put it into the job ad.

I think that if you changed your executable to /usr/bin/env, and removed the arguments line, you'd see the enviroment variables available to the job.

-greg