[slurm-users] Enforce shell options for job environment when submitting job?

Juergen Salk juergen.salk at uni-ulm.de
Tue Dec 7 00:01:51 UTC 2021


Hi, 

does anybody know a simple way to enforce certain shell options 
such as 

  set -o errexit (a.k.a. set -e)
  set -o pipefail 

and maybe also 

  set -o nounset (a.k.a. set -u)

for the job environment at job submission time (without modifying 
the batch scripts themselves)?

Background of this question is that we are about to implement some
sort of test suite for sample batch scripts and want to verify their
successful execution by checking the exit code of the jobs (which does
not necessarily indicate successful execution of the whole job but
only of the last command in the batch script, if errexit and pipefail
options are not set). 

Best regards
Jürgen




More information about the slurm-users mailing list