Why Matlab in screen in Linux on PuTTY terminates itself after closing PuTTY session?

Posted by Karl on Super User See other posts from Super User or by Karl
Published on 2012-11-18T15:34:14Z Indexed on 2012/11/18 17:06 UTC
Read the original article Hit count: 308

Filed under:
|
|
|
|

I connected to a linux server with PuTTY and start a screen session, and start matlab with:

matlab -nodesktop

Then, I run my matlab code as usual. The code will run for hours. So to test whether screen works, I start another PuTTY session and run top. Then, I close PuTTY session with still-running Matlab (top shows Matlab at 100% CPU usage) in screen. To my surprise, my Matlab process vanished after I close the aforementioned session. I've tried this a few times, and it seems the same thing happened.

screen -ls

shows that my screens are there but detached. top also shows that my matlab is not there.

What might be the possible cause of this? Doesn't screen normally should keep on running even I terminate my PuTTY session?

© Super User or respective owner

Related posts about linux

Related posts about putty