[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[HTCondor-users] PostCMD with absolute paths?

Hi all,

I am trying to run a post job script with something like

However, problem seems to be, that only relative (local paths to the Condor job IWD) seem to work :-/

HoldReason = "Error from slot2_12@xxxxxxxxxxxxxxx: Failed to execute '/var/lib/condor/execute/dir_31011//usr/.../postcmd.sh': No such file or directory"

is there a way around to use PostCmd (and PreCmd) with absolute paths?

Else I suppose a job wrapper like [1] would be the way to go, or?


!/usr/bin/bash -l
# set -euo pipefail
exec "$@"
exec /usr/.../postcmd.sh

it would be bice to exit properly and gracefully, when the payload fails - but still run the post script. So, `set -euo pipefail` might be to strict :-/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature