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

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



Hi Francisco,

Glad this solution worked. Hopefully in the near future this will be easier to find as we are currently trying to move examples from our wiki into an easy to find location in the documentation. Especially one such as this example that is very commonly asked about.

-Cole Bollig

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Francisco Leite de Castro <frankie.lc@xxxxxxxxx>
Sent: Wednesday, March 20, 2024 12:20 PM
To: Todd Tannenbaum <tannenba@xxxxxxxxxxx>
Cc: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: 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