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

39 views
Skip to first unread message

Juergen Salk

unread,
Dec 6, 2021, 7:02:45 PM12/6/21
to Slurm User Community List
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


Reply all
Reply to author
Forward
0 new messages