[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] PostCMD with absolute paths?
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
Digital Transormation & Innovation
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?
This was a known issue that we fixed in HTCondor 8.8.11:
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.
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
> 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
> '/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  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
> - 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
> The archives can be found at:
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
You can also unsubscribe by visiting
The archives can be found at: