First off, I know about tmux
and screen
. My conundrum: I started a shell script over SSH expecting it would take a short amount of time, so I left my computer on overnight.
I can't terminate and restart the shell command, otherwise it will restart from the beginning. I would like to terminate my SSH connection without terminating the shell script. Is there anything I can do retroactively (i.e. command is already running in SSH terminal) that will detach it and allow me to safely disconnect my computer?
nohup
kills it anyway).reptyr
which should allow you to move it to another tty, but frankly I haven't used it (I've only used some similar hack done by myself). But I guess you're not into experimenting, so you better leave your computer connected & running now ;_)disown
the process - but you can't (easily) get it back.