Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HTCondor-users] How can I run condor_history from a file using the python bindings?
- Date: Fri, 02 Oct 2020 09:37:14 +0100
- From: jcaballero.hep@xxxxxxxxx
- Subject: [HTCondor-users] How can I run condor_history from a file using the python bindings?
Hi,
Running condor 8.6.13 on EL7.
I have just tried this snippet [1], similar to the one in the documentation.
However, this is the only output I get [2].
The file exists and is readable.
What am I missing?
Thanks a lot in advance.
Cheers,
Jose
[1]
import classad
import os
fd = os.popen("condor_history -file /root/history")
ads = classad.parseOldAds(fd)
for ad in ads: print ad['ClusterId']
[2]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: ID OWNER SUBMITTED RUN_TIME ST COMPLETED CMD