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

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



Michael,

Sadly I get the same results when using double quotes.

Heath


On 02/20/2018 12:02 PM, Michael Pelletier wrote:
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'

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/