Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-11-2009, 04:27 PM   #1
LQ Newbie
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
Calling Matlab from wine cmd.exe

I need to call Matlab (native unix version) from a Windows application using wine.

In order to do so the Windows app calls the command "matlab" at the wine cmd.

Using this example I was able to create a simple script (matlab.bat) to launch glxgears. After adding the directory of the script to the windows search path, inputting 'matlab' at the cmd would start glxgears just fine. All very easy so far...

Now I just change the script from:

/bin/sh -c glxgears

/bin/sh -c matlab2006
and I get the following error:

CMD Versie 1.0.1

Z:\home\john>/bin/sh -c matlab2006
Z:\home\john>exec: 1: /usr/local/bin/matlab2006.bat: not found
However when running the script in a linux terminal, Matlab starts just fine.

I've already tried some variations like calling Matlab directly from it's installation directory, but I get the same error.

It really puzzles me, because other apps like gedit work perfectly using this method.

Can anyone shed some knowlegde on this issue?

Old 03-12-2009, 10:39 AM   #2
LQ Newbie
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
OK, I have made some progress.

I've changed the script to:

/bin/sh -c /usr/local/matlab/bin/glnx86/MATLAB
and Matlab finally 'starts'.

Unfortunately the program lags horribly and I can't seem to pass startup options (-nosplash -nojvm)


matlab, wine

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: cmd.exe for Linux zealots LXer Syndicated Linux News 1 04-13-2008 10:07 AM
bash/cmd mode: how to know that somebdy is calling in skype ? frenchn00b Programming 1 01-07-2008 04:49 AM
Linux equivalent of WinXP's cmd.exe /c zhou059 Linux - Software 1 06-22-2007 01:39 PM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 07:49 AM
Using Sed under CMD.exe (windows) Burgin Programming 5 11-26-2004 03:17 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration