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

Re: [Condor-users] ifThenElse in a submit file




ifThenElse() and other ClassAd functions and operators only work in places where Condor is expecting an expression. The "executable" and "transfer_input_files" commands do not expect expressions. "Requirements", "rank", and a number of other submit file commands do expect expressions.

Because it is not always clear from the user's perspective which things are evaluated as expressions and which are not, this is not an ideal situation. There has been talk about making Condor accept expressions everywhere, but that change would not happen in the current 7.0 series. At best, it would happen in the 7.1 series.

--Dan

Brian Macherone wrote:
Ben,

We are selecting the proper binaries by using something like:

executable = bin/hello_$$(OpSys)_$$(Arch).exe

(would like not to have to call them all .exe as well, but it works...)

What we are trying to do is control which files get transferred, wishing
something like this would work:

transfer_input_files = ifThenElse(OpSys == WINNT50,somefile.zip,"")

My generic question is: does ifThenElse work in submit files?

-Brian

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Ben Burnett
Sent: Thursday, June 05, 2008 2:41 PM
To: 'Condor-Users Mail List'
Subject: Re: [Condor-users] ifThenElse in a submit file

Hi Brian:

Could you elaborate on what it is you are trying to do? Are trying to select the appropriate binaries depending on the execute machine?

-B

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-
bounces@xxxxxxxxxxx] On Behalf Of Brian Macherone
Sent: Thursday, June 05, 2008 12:37 PM
To: Condor-Users Mail List
Subject: [Condor-users] ifThenElse in a submit file

Has anybody used "ifThenElse" in a submit file and if so, could you
provide a brief example? It would be handy for in our multi
os/architecture environment.

Brian

_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
with
a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/

_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with
a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at: https://lists.cs.wisc.edu/archive/condor-users/
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at: https://lists.cs.wisc.edu/archive/condor-users/