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

Re: [HTCondor-users] Using Environment Variables in Startd Cron



Try it with double quotes instead of single quotes - that should do the trick for you.

	-Michael Pelletier.

-----Original Message-----
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of hskarlupka
Sent: Tuesday, February 20, 2018 12:50 PM
To: HTCondor Users Mailinglist <htcondor-users@xxxxxxxxxxx>
Subject: [External] [HTCondor-users] Using Environment Variables in Startd Cron

Hello,

I'm running some startd cron jobs to create a couple of additional classads. More recently I had to start adding environment variables. I noticed that startd cron doesn't work well with multiple variables. It instead squashes the list of variables down to just one variable where the key is equal to the first variable name and the value is equal to the rest of the text. Here is an example of how I set it up and the output I see:

export _condor_STARTD_CRON_FOO_EXECUTABLE='./foo.sh'
export _condor_STARTD_CRON_FOO_ARGS='-a 1 -b 2 -c 3'
export _condor_STARTD_CRON_FOO_ENV='VAR1=/foo VAR2=/bar'