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

Re: [Condor-users] What is the best way to run a command on the whole cluster, one command per machine?



Jose,

Running a job on every machine can be done with a submit file such as the following:

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

+TargetSlot = "slot1@machine1"
queue

+TargetSlot = "slot1@machine2"
queue

+TargetSlot = "slot1@machine3"
queue

...

############

You can generate such a submit file with a simple script that uses the output of the following condor_status command to get the slot names:

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

I hope that helps.

--Dan

On 2/14/11 11:24 AM, jose.nunez-zuleta@xxxxxxxxxxxxxxxxxxx wrote:
Hello Condor users,
 
Do you know if there is a pattern to do something like this in Condor using the vanilla universe?:
 
for machine in `cat mylistofmachines`; do
    ssh -x -q $machine " "my_cool_external_command" &
done
wait

... do some processing
... rince and repeat
 
Thanks!
 
--Jose
 

_______________________________________________

 

This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing.  Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be sent from other members of the Barclays Group.

_______________________________________________

_______________________________________________ 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/