[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] <number of jobs> argument

$$() doesn't expand until after the job is matched, so while you can do queue $(n), you can't when $(n) expands to $$().

Really, what you want is to be able to do math in the submit file, which is reasonable I think. 
$$([]) is a not the way to go about it though.

What you can do is this

condor_q submitfile -a "n=579"

where submitfile has

queue $(n)

We will have to give some thought to how we could add math to macro expansion in submit.


On 3/2/2015 11:00 AM, Werner Hack wrote:
Hi all,

I have a simple question to the queue command:
I can specifiy the number of jobs as a argument to the queue command in a submit file.
I tried it with a calculated value for this argument but this does not work.

A simple example:

a = 123
b = 456
n = $$([ $(b) - $(a) ])
queue $(n)

I don't see any reason for this restriction. $(n) is a constant value.
Can someone explain, why I can only use real numbers as argument for the queue command?
Or exists there a special trick?
This would be quite handy to program loops in Condor, espcially if $(a) or $(b) are also
calculated (constant) values.


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: