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

Re: [Condor-users] $(Process) not starting at 0



Looking at the version history it isn't clear when the feature was added, but in 7.1.1 there was a bug fixed that seems relevant:

http://www.cs.wisc.edu/condor/manual/v7.1/8_Version_History.html

http://www.cs.wisc.edu/condor/manual/v7.1/8_3Development_Release.html#SECTION00933000000000000000

Condor now coerces the result of $$([]) expressions within submit description files to strings. This means that submit files can do simple arithmetic. For example, you can describe a command-line argument as:

arguments = $$([$(PROCESS)+100])

and condor_ submit will expand the argument to be the expected value.

Best,


matt

Ángel de Vicente wrote:
Hi,


Have a look at the thread: condor_submit feature request

https://lists.cs.wisc.edu/archive/condor-users/2008-August/msg00039.shtml

Todd and Greg's responses are particularly illuminating.

	arguments = $$([$(PROCESS) + 175])


since when is this available? We have version 7.0.1, and when submitting a job with the following submit file:

Seq = $$([ $(Process) + 200 ])

tiempo= 10
executable=myprog
universe=vanilla
arguments=Example.$(Seq).$(Cluster).$(Process) $(tiempo)
output=output.$(Process)
error=error.$(Process)
log=results.log
Notification = error


queue 10

I get:

012 (018.000.000) 11/04 11:16:53 Job was held.
	Cannot expand $$([ 0 + 200 ]).
	Code 0 Subcode 0
...
012 (018.001.000) 11/04 11:16:53 Job was held.
	Cannot expand $$([ 1 + 200 ]).
	Code 0 Subcode 0
...

Thanks,
Ángel de Vicente