Page History

Turn Off History

Running a single command on every machine in the pool can be accomplished by submitting a set of Condor jobs using a single submit description file of the following form:

executable = X
requirements = TARGET.name == MY.TargetSlot

+TargetSlot = "slot1@machine1"
queue

+TargetSlot = "slot1@machine2"
queue

+TargetSlot = "slot1@machine3"
queue

 .
 .
 .

There will be one +TargetSlot and one queue command for each machine in the pool.

A list of machine names for all machines in the pool may be obtained using the condor_status command:

condor_status -constraint 'SlotID==1' -format "%s\n" Name

And, you can have condor do most of the work for you in generating the above submit file:

> cat <<EOF > runit.sub
universe = vanilla
executable = X
requirements = TARGET.name == MY.TargetSlot

EOF

> condor_status -constraint 'SlotID==1' -format '+TargetSlot = "%s"\nqueue\n\n' Name >> runit.sub