ssh - How to run a CPU Hogging Program on Remote Server? -
i run machine learning program might take day or 2 complete; not want run on laptop, on remote server. thinking if ssh machine , run program there, , close ssh session, how know next time ssh machine if program still running or completed?
use screen
instead. assuming have installed, run screen
ssh session. given new shell.
once start program can detach session terminal typing ^a d
(ctrl+a followed d).
later, when ssh in, run screen -r
reattach session current terminal.
(note plain killing off ssh session in fact detach screen session, not kill it.)
man screen
further reading. screen
very powerful, , learning ^a
action sequences worth time. use screen
daily , love it.
Comments
Post a Comment