LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-11-2009, 03:27 PM   #1
jykgu
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:

Code:
/bin/sh -c glxgears
to:

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

Code:
CMD Versie 1.0.1

Z:\home\john>matlab
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?

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

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

I've changed the script to:

Code:
/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)
 
  


Reply

Tags
matlab, wine



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 09:07 AM
bash/cmd mode: how to know that somebdy is calling in skype ? frenchn00b Programming 1 01-07-2008 03:49 AM
Linux equivalent of WinXP's cmd.exe /c zhou059 Linux - Software 1 06-22-2007 12:39 PM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 06:49 AM
Using Sed under CMD.exe (windows) Burgin Programming 5 11-26-2004 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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