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
Digital Transormation & Innovation
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx>
On Behalf Of Bo-Ru Roy Lu
When I used condor to submit my bash script, can I use the variable, such as $USER and $PWD?