ah - fair enough ;)another idea I had would have to try to automatically bind-mount (or symlink) the helper base path into the IWD - but that might have got messy ;)
probably it should be going to 8.8.11 with the nodes as Mark suggested On 04/02/2021 19.59, Michael Pelletier via HTCondor-users wrote:
To resolve this issue I just use a bunch of ".." path elements: MY.PostCmd = "../../../../../../../../bin/bash" MY.PostArguments = "-c 'echo all done'" Since ".." in the root directory is the root directory, any extras don't matter. Michael V Pelletier Principal Engineer Raytheon Technologies Information Technology Digital Transormation & Innovation-----Original Message----- From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Mark Coatsworth Sent: Thursday, February 4, 2021 11:18 AM To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx> Subject: [External] Re: [HTCondor-users] PostCMD with absolute paths? 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/ _______________________________________________ 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