Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Looping in Condor job description scripts?
- Date: Thu, 9 Apr 2009 11:24:39 +0100
- From: Alan Woodland <alan.woodland@xxxxxxxxx>
- Subject: Re: [Condor-users] Looping in Condor job description scripts?
2009/4/9 David Brodbeck <brodbd@xxxxxxxxxxxxxxxx>:
>
> On Apr 8, 2009, at 4:23 PM, Wei Wang wrote:
>
>> Hi, dear Condor-users,
>>
>> Is it possible to do looping inside a Condor job description file?
>> Here is logic of describing what I want to do:
>>
>> ......
>> Arguments = $(parameter)
>> ......
>> DO i = 1, N
>> parameter = i
>> queue
>> ENDDO
>>
>> So I can submit N jobs without the trouble of using Shell/Perl/
>> Python to generate N different files then use condor_submit N times.
>>
>> Thanks!
>
> How about:
>
> ....
> Arguments = $(Process)
> ....
> Queue N
>
> $(Process) starts at 0 and increments as each job is queued.
>
Or with recent versions this trick works:
Arguments = $$([$(Process) + 100])
Would cause the arguments to start at 100 instead of 0.
Alan