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

Re: [HTCondor-users] Fwd: How to get node variable on job?



Hi Todd,

Absolutely solves the problem.
Spent all morning reading/searching and trying to tackle the issue until I wrote to the list.
You saved me countless hours of digging through the manual.

Many thanks!

----


On Wed, Mar 20, 2024 at 1:40âPM Todd Tannenbaum <tannenba@xxxxxxxxxxx> wrote:
On 3/20/2024 6:34 AM, Francisco Leite de Castro wrote:
I've set up a DATA_PATH value on all my nodes.
DATA_PATH varies from node to node

box1 => DATA_PATH=/home/user1/data
box2 => DATA_PATH=c:\Users\User1\testing\data
etc...

I can query the DATA_PATH variable correctly using `condor_config_val DATA_PATH` but I'm having some trouble getting it into the running script.

universe = vanilla
executable = my_script.sh
arguments = $(DATA_PATH)

Shouldn't this work?

Any suggestions or alternatives?


I'd suggest adding the DATA_PATH as a machine attribute; an example of how to do this is here:

https://htcondor-wiki.cs.wisc.edu/index.cgi/wiki?p=HowToAdjustEnvironment

Hope this helps,
Todd