[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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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).