I am using someone else’s code and I am
not too familiar with dos script. How do you call matlab from a .bat file and
set an argument?
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: Thursday, July 12, 2007 8:14
AM
To: Condor-Users
Mail List
Subject: Re: [Condor-users]
running executables on other machines of cluster
In the submission script
get condor to transfer the testmatlab.m file. transfer_files = testmatlab.m or
whatever is it. Then in the batch file call the MATLAB executable at the
correct path (having found out if its on C or G) with the testmatlab.m as an
argument.
Don't put the MATLAB executable or the .m file as the Condor executable - this
should be the batch file.
S.
On 12/07/07, Richardson, Joshua <jrichardson@xxxxxxxxxxxxxxxxxx>
wrote:
I know that matlab is on every computer in the cluster. It is
located in C drive on most computers but on one it is the G drive. Besides the
drive letter, the locations are the same…\matlab_distributed\r2007a\.
The code of the batch is below. It finds if the computer has
a C or G drive and sets path to include G or C with
\matlab_distributed\r2007a\.
My question is how would I test the testmatlab.m and
incorporate it if this is suppose to be my executable instead of the .sh file?
@echo off
IF EXIST "C:\MATLAB_DISTRIBUTED\R2007a" (SET
DRIVELETTER=C)
SET path=%DRIVELETTER%:\MATLAB_DISTRIBUTED\R2007a
IF EXIST "G:\MATLAB_DISTRIBUTED\R2007a" (SET
DRIVELETTER=G)
SET path=%DRIVELETTER%:\MATLAB_DISTRIBUTED\R2007a
path
echo %DRIVELETTER% "is the DRIVELETTER "
Josh Richardson
Integrity Applications Incorporated Intern (IAI)
703-378-8672 ext 632
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/
_______________________________________________
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/
|