# Re: [Condor-users] Condor+Matlab Executable in Windows

• Date: Fri, 03 Mar 2006 11:47:57 -0600
• From: Bill Taylor <bt@xxxxxxxxxxx>
• Subject: Re: [Condor-users] Condor+Matlab Executable in Windows

```Jaime Frey wrote:
```
```On Mar 2, 2006, at 10:40 AM, Zoltán Sárosi wrote:

```
I would like to run my Matlab executable on several windows XP computers.
```I compiled my Matlab program with the command:	mcc -m program.m
```
The executable file still requires many dll-s from Matlab or Matlab Component Runtime directory. How can I set up Condor or the submission file in order to let the executable find these missing dlls? The problem is, that the Matlab or the MCR directory are not always in the same directory on each computer, so it's no use defining a PATH in the submission script. I tried to define the PATH in
```the local-config, but I was unable to make it work.
```
Or how can I compile a matlab program, that all the required dlls are already
```included in the executable file?
Any Idea? Thank you!
```
```
```
One option is to have all of your machines advertise whether they have Matlab installed and, if so, where it's located. Then you can write your job requirements to only match machines with Matlab and use \$\$ substitution to set the proper path.
```
+--------------------------------+-----------------------------------+
|           Jaime Frey           | I used to be a heavy gambler.     |
|       jfrey@xxxxxxxxxxx        | But now I just make mental bets.  |
| http://www.cs.wisc.edu/~jfrey/ | That's how I lost my mind.        |
+--------------------------------+-----------------------------------+

_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

```
Another option is to locate the runtime on a shared files system of some sort and use a batch file similar to this to set the path location and start the actual
```program.

pistachio.bat:

set PATH=p:\condor\workspaces\matlab\win32\v7.0\v70\runtime\win32
pistachio.exe %1 %2 %3

Then the submit file would be something like this:
universe = vanilla

executable = pistachio.bat

error = pistachio.err

output = pistachio.out

log = pistachio.log

should_transfer_files = YES

when_to_transfer_output = ON_EXIT

arguments = jiqui_exp.txt jiqui_seq.txt barr
```