To talk on Icrontic, just register!

It only takes 30 seconds.

Have an account? Sign in:

Forgot?
jmabie
New to the neighborhood
jmabie
4 Posts

autoexit after script runs

Hello
I have a matlab scritp that is called from a shell script. The problem is that matlab will not exit after the script is finished executing and so the driving shell script hangs. I've tried 'quit' and 'exit' at the end of the matlab script and after the call to matlab in the shell scritp and nothing seems to work. Does anyone know how to force matlab to quit from within the script?
thanks
shwaip
elaborate bot
shwaip
5,729 Posts
it sounds like the script isn't reaching the end (hence why exit and quit aren't helping). If you run the script from within matlab, does it finish properly?
__________________ my photostream for ic photography challenge

Anyone who wants dropbox, please use my referral link
jmabie
New to the neighborhood
jmabie
4 Posts
Yes, when I run it directly, the script finishes, exits, and returns to the MATLAB command prompt. I can them manually quit with no problem. The problem is that the driving shell script doesn't know the code is finished because MATLAB just sits idle instead of exiting. What I need to be able to do is to exit MATLAB from within an executing MATLAB program or something like that (ie: exit the program and then exit MATLAB automatically). Thanks for the help.
Similar Threads
Thread Thread Starter Forum Replies Last Post
Mediatomb on Ubuntu - init script Cyclonite Operating Systems 11 29 Nov 2008 12:34am
Ad-Aware crashes in registry deep scan...possible malware? Treadstone71 Resolved / Inactive 23 8 Mar 2006 12:58am
J. Script Script-- Possibly a virus Lex Resolved / Inactive 9 20 Aug 2005 7:16pm
iptable setup script help test_tube_tony Operating Systems 1 7 Nov 2004 7:32pm
Slideshow Script Error Madasafish Web & Digital Media 1 23 Aug 2004 4:21pm

Go Back   Icrontic Forums > Tech: Software > General Software > Matlab Help
Jump to
This Thread Search this Thread
Search this Thread:

Advanced Search


Current time: 3:18am (GMT)
Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Get Vanilla instead. Trust me.