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

Re: [HTCondor-users] Linux reserved variable when running a job

The submit file can reference the submitterâs environment variables via the $ENV() function macro:


   Description = $ENV(USER) procedure


The âenvironmentâ submit command defines what variables will be set in the jobâs environment:


   Environment â USER=$ENV(USER) PWD=$ENV(PWD) JOBID=$(Cluster).$(Process) â


When you use âgetenv = Trueâ it will pull everything in the submit environment into the job, but thatâs not best practice â itâs better to know exactly what your job needs and provide it, rather than send it everything in the hopes that some of it sticks.



Michael V Pelletier

Principal Engineer

Raytheon Technologies

Information Technology

Digital Transormation & Innovation


From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Bo-Ru Roy Lu
Sent: Thursday, May 7, 2020 11:57 AM
To: htcondor-users@xxxxxxxxxxx
Subject: [External] [HTCondor-users] Linux reserved variable when running a job




When I used condor to submit my bash script, can I use the variable, such as $USER and $PWD?