ah, thanks - I will have a look :) On 04/02/2021 17.18, Mark Coatsworth wrote:
Hi Thomas, This was a known issue that we fixed in HTCondor 8.8.11: https://htcondor-wiki.cs.wisc.edu/index.cgi/tktview?tn=7770 So if you are able to upgrade to a recent version, that is the most straightforward way to fix this. Please keep in mind that PostCmd (and PreCmd) scripts are invoked on the execute node, so that's where you need to do the upgrade. If that's not possible, then the closest thing to what you're looking for is a wrapper script (like you suggested), or a relative-path PostCmd that invokes the desired absolute path script. Mark On Thu, Feb 4, 2021 at 7:44 AM Thomas Hartmann <thomas.hartmann@xxxxxxx> wrote:Hi all, I am trying to run a post job script with something like +PostCmd="/usr/.../postcmd.sh" 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? Thomas [1] !/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 :-/ _______________________________________________ HTCondor-users mailing list To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a subject: Unsubscribe You can also unsubscribe by visiting https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users The archives can be found at: https://lists.cs.wisc.edu/archive/htcondor-users/-- Mark Coatsworth Systems Programmer Center for High Throughput Computing Department of Computer Sciences University of Wisconsin-Madison _______________________________________________ HTCondor-users mailing list To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a subject: Unsubscribe You can also unsubscribe by visiting https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users The archives can be found at: https://lists.cs.wisc.edu/archive/htcondor-users/
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature