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

Re: [Condor-users] running executables on other machines of cluster



Title: Message
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/setlocal.mspx?mfr=true
 
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/endlocal.mspx?mfr=true
 
They probably aren't necessary for this since you aren't running from a command prompt, but they are very useful when you only want to change the environment inside the batch file and have it revert back when the batch file ends.  I add those commands to almost all batch files that I write.
 
-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Richardson, Joshua
Sent: Wednesday, July 11, 2007 12:08
To: Condor-Users Mail List
Subject: Re: [Condor-users] running executables on other machines of cluster

What does the setlocal and endlocal do?

 

Josh Richardson

Integrity Applications Incorporated Intern (IAI)

703-378-8672 ext 632

 


From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Jones, Torrin A (US SSA)
Sent: Wednesday, July 11, 2007 12:29 PM
To: Condor-Users Mail List
Subject: Re: [Condor-users] running executables on other machines of cluster

 

In a batch file, you can use use trial and error and manually go through the drives to see if the executable exists.  This assumes that the installation is sane and the executable is installed in the same relative place, just a different drive letter.  Mind you I haven't tested this, this is just something that I wrote off the top of my head.  You'll need to fix this.

 

@echo off

setlocal

if exist "C:\Program Files\someexecutable.exe" set DRIVELETTER = C

. . .

if exist "V:\Program Files\someexecutable.exe" set DRIVELETTER = V

 

%DRIVELETTER%:\Program Files\someexecutable.exe

endlocal

 

 

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Richardson, Joshua
Sent: Wednesday, July 11, 2007 09:20
To: Condor-Users Mail List
Subject: Re: [Condor-users] running executables on other machines of cluster

Yeah, that’s definitely the most robust way to do it, if everything isn’t installed to the same location.  But how would you do this?  Once running inside a Condor-submitted executable, you don’t seem to have access to the worker machine’s path, directory structure, environment variables, registry values, etc., do you?

 

Josh Richardson

Integrity Applications Incorporated Intern (IAI)

703-378-8672 ext 632

 


From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Simon Hammond
Sent: Wednesday, July 11, 2007 11:59 AM
To: Condor-Users Mail List
Subject: Re: [Condor-users] running executables on other machines of cluster

 

Can you write a small batch (.bat) file which locates the MATLAB executable and then runs it?

I guess the way to do this might be to try to find the file at each of the locations, if it gets found then you can run it otherwise try the next one etc.

You can set the executable=mybatch.bat instead of the .sh file and then it should work.

On 11/07/07, Richardson, Joshua < jrichardson@xxxxxxxxxxxxxxxxxx> wrote:

The attachments seem to be for a unix system? Would they work for
windows as well?

Josh Richardson
Integrity Applications Incorporated Intern (IAI)
703-378-8672 ext 632


-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Ian Cottam
Sent: Wednesday, July 11, 2007 11:21 AM
To: Condor-Users Mail List
Subject: Re: [Condor-users] running executables on other machines of
cluster

Sample matlab stuff attached.
Hope it helps for you (and others).
-Ian


Richardson, Joshua wrote:
> So what did you exactly do? I am trying to incorporate the MDCE of
> matlab with condor. So how would I get the matlab to run? Can you send
> me sample code that you have used?
>
> Josh Richardson
> Integrity Applications Incorporated Intern (IAI)
> 703-378-8672 ext 632
>
>
> -----Original Message-----
> From: condor-users-bounces@xxxxxxxxxxx
> [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Ian Cottam
> Sent: Wednesday, July 11, 2007 11:04 AM
> To: Condor-Users Mail List
> Subject: Re: [Condor-users] running executables on other machines of
> cluster
>
> Yes, it sounds just like how we (and many others) run Matlab,
Gaussian,
> and other preinstalled apps.
> -Ian
>
>
> Richardson, Joshua wrote:
>> No it is not. I have programs on computers that are the same. I want
> to
>> have a batch file run the same program it would on its computer
>> elsewhere on the cluster. Is it possible to do that with out a shared

>> file system?
>>
>>
>>
>> Josh Richardson
>>
>> Integrity Applications Incorporated Intern (IAI)
>>
>> 703-378-8672 ext 632
>>
>>
>>
>>
>
------------------------------------------------------------------------
>> *From:* condor-users-bounces@xxxxxxxxxxx
>> [mailto:condor-users-bounces@xxxxxxxxxxx] *On Behalf Of *Simon
Hammond
>> *Sent:* Wednesday, July 11, 2007 10:43 AM
>> *To:* Condor-Users Mail List
>> *Subject:* Re: [Condor-users] running executables on other machines
of
>
>> cluster
>>
>>
>>
>> Josh,
>>
>> Is condor set up to use a shared file system on your cluster?
>>
>>
>>
>> S.
>>
>> On 11/07/07, *Richardson**, Joshua* < jrichardson@xxxxxxxxxxxxxxxxxx
>> <mailto:jrichardson@xxxxxxxxxxxxxxxxxx>> wrote:
>>
>> Is it possible to have a batch file run through condor and sent
> through
>> the cluster to different machines and have it run different
> executables
>> already on the machines of the cluster, or do you have to send all
the
>
>> executables to be run with the batch file?
>>
>>
>>
>> Josh Richardson
>>
>> Integrity Applications Incorporated Intern (IAI)
>>
>> 703-378-8672 ext 632
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Condor-users mailing list
>> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx
>> <mailto: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/
>

--
Ian Cottam
Information Systems Manager
Manchester Interdisciplinary Biocentre
The John Garside Building (Room G.002)
The University of Manchester
http://www.manchester.ac.uk/mib
e: ian.cottam@xxxxxxxxxxxxxxxx
t: 0161 306 5198
m: 07856 849831
http://personalpages.manchester.ac.uk/staff/Ian.Cottam



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