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

[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'

When the job executes the environment only shows VAR1 and has it set to "/foo VAR2=/bar". The HTCondor docs show spaces between variables. Is there another special character I should be using? Thank you for the info!

Heath