Mailing List Archives
Public Access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HTCondor-users] Specifying log files from python
- Date: Wed, 27 Dec 2017 12:58:07 -0500
- From: Larry Martell <larry.martell@xxxxxxxxx>
- Subject: [HTCondor-users] Specifying log files from python
On this site: http://osgtech.blogspot.com/2014/03/submitting-jobs-to-htcondor-using-python.html
I see this:
For example, consider the following submit file:
executable = test.sharguments = foo bar
log = test.log
output = test.out.$(Process)
error = test.err
transfer_output_files = output
should_transfer_files = yes
queue 1
The equivalent submit ClassAd is:
[
Cmd = "test.sh";
Arguments = "foo bar"
UserLog = "test.log";
Out = strcat("test.out",ProcId);
Err = "test.err";
TransferOutput = "output";
ShouldTransferFiles = "YES";
]
So in my python code I create this logging in my ClassAd:
[
Err = "strcat(\"/Staging/Repos/CAPbase/cluster/logs/compute_radiology.err\",
ProcId)";
Out = "strcat(\"/Staging/Repos/CAPbase/cluster/logs/compute_radiology.out\",
ProcId)";
UserLog =
"strcat(\"/Staging/Repos/CAPbase/cluster/logs/compute_radiology.log\",
ProcId)";
]
But I see this in the SchedLog:
12/27/17 12:34:15 (pid:3755290) WriteUserLog::initialize:
safe_open_wrapper("/opt/capcompute/util/strcat("/Staging/Repos/CAPbase/cluster/logs/compute_radiology.log",
ProcId)") failed - errno 2 (No such file or directory)
/opt/capcompute/util/ is the dir the python script that is submitting
the job is running from.
What am I doing wrong here? How do I properly specify the path and
file name for the logs?