Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Python ClassAd question
- Date: Tue, 3 Feb 2015 02:01:01 -0600
- From: Brian Bockelman <bbockelm@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] Python ClassAd question
Hi Evan,
The condor_submit binary itself does the macro expansion for $(cluster) and $(proc) on the submit-side when converting from submit file format to a ClassAd.
As the python bindings use raw ClassAds, it has no macro expansion step. One way to get the same effect is to do:
Out = strcat(âout.txt.â, ClusterId)
Similarly, if you want to include the proc, it is:
Out = strcat(âout.txt.â, ProcId)
Hope this helps,
Brian
> On Jan 29, 2015, at 11:21 AM, Evan Sarmiento <esarmien@xxxxxxxxxxxxx> wrote:
>
> Hi All,
>
> In your Condor submit file, you can specify
>
> Out = out.txt.$(cluster)
>
> and an out.txt will be produced with the JobID appended to it.
>
> Is there any way to replicate this feature using the Python API? So far Iâm out of luck discovering a way to do so.
>
> Best,
> Evan
>
>
> Evan Sarmeinto
> Sr. Systems Administrator
> Harvard-MIT Data Center
> T: 617-384-5876
> E: esarmien@xxxxxxxxxxxxx
> Follow us: @hmdcrce
> _______________________________________________
> 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/