matlab - How to save the life of my process? -


i have following problem: want run cumbersome calculation on server via putty in matlab. not want keep notebook whole time connected server, why searching solution problem. know screen in general works not sure whether me here too. problem following: each time start matlab program have no longer control on terminal, since matlab program still running. therefore forced abort process, not want happen. there me.

what need this: 1.)start matlab application on server 2.)disconnect server 3.)connect server 4.)have access matlab again

i highly appreciate it, if give me reference commands might helpful in situation.

as @peter said, screen 1 solution. brief tutorial:

connect server

  • screen -s sectionname
  • matlab -nosplash -nodesktop or -nodisplay or -nojvm depending if have allowed x11 forwarding on putty (you can check open figure , check if can see -nodesktop option)
  • ctrl+a d detach
  • log out

reconnect server

  • if using x11 forwarding, may need update display on screen, so: echo $display, copy result
  • screen -rd sectionname
  • if using x11 forward, update display on screen export display="value echoed outside screen" (i think opposite works, set log display screen display)

finish screen

  • exit matlab , type exit

list open screens

  • screen -ls

terminate unresponsive screen

  • ctrl+a ctrl+k , answer y

navigate through screen screen:

  • ctrl+esc , use arrows or: ctrl+u go half screen , ctrl+d half screen down

exit broken connection screen

  • ~ .

note: can have more 1 screen section running, or can open multiple screen windows using ctrl+a ctrl+c

note2: screen command may addicting, use cautious. don't forget read man page.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -