Update 'computing_htcondor'

Blake Leverington 2021-07-29 16:41:36 +02:00
parent eee1e8a0b7
commit 83dbc6db2a

@ -22,9 +22,9 @@ should_transfer_files = IF_NEEDED
# Without variable part, output files will be the same for all jobs. # Without variable part, output files will be the same for all jobs.
# That can be confusing. # That can be confusing.
output = out/job.$(ClusterId).$(ProcId).out output = output/job.$(ClusterId).$(ProcId).out
error = err/job.$(ClusterId).$(ProcId).err error = ouput/job.$(ClusterId).$(ProcId).err
log = log/job.$(ClusterId).log log = output/job.$(ClusterId).log
# It is possible apply current environment variables in jobs, with the following # It is possible apply current environment variables in jobs, with the following
# flag. But in general when particular environment is required, safe option # flag. But in general when particular environment is required, safe option
@ -70,10 +70,9 @@ pwd
#setup a simple lhcb environment and check if ROOT is the correct version #setup a simple lhcb environment and check if ROOT is the correct version
source /cvmfs/lhcb.cern.ch/lib/LbEnv source /cvmfs/lhcb.cern.ch/lib/LbEnv
source /cvmfs/sft.cern.ch/lcg/views/LCG_98/x86_64-centos7-gcc9-opt/setup.sh
env #outputs the current environment in stdout env #outputs the current environment in stdout
which lb-run #check lb-run is there
lb-run Urania/latest root -l --version #outputs ROOT version to stderr
lb-run Urania/latest root-config --cflags #check the ROOT compilation flags, outputs in stdout
``` ```
@ -81,12 +80,9 @@ lb-run Urania/latest root-config --cflags #check the ROOT compilation flags, out
Then submit the job via the command line: Then submit the job via the command line:
```console ```console
mkdir -p err #setup the output directories to keep things clean mkdir -p output #setup a condor output directory to keep things clean
mkdir -p out
mkdir -p log
condor_submit -file job.sub condor_submit -file job.sub
``` ```
Files will be returned to this folder.
You can test your executable or script interactively via: You can test your executable or script interactively via: