How to start process over ssh that doesn't terminate when session ends?

妖精的绣舞 提交于 2019-12-10 17:36:33

问题


Is there a way to start a process using ssh that doesn't terminate when the ssh session terminates? I want the job to keep running on the computer I'm ssh-ing into without me having to keep the connection open.


回答1:


you can use nohup (assuming you are SSHing into *nix server)




回答2:


You could use the screen utility.




回答3:


An alternative to screen is dtach. dtach is smaller and more lightweight - in fact it is just the detach part of the screen utility.



来源:https://stackoverflow.com/questions/2190100/how-to-start-process-over-ssh-that-doesnt-terminate-when-session-ends

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!