Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Really into the backgroung...

On Sun, 11 Aug 2013, Timo Schmidt wrote:

On Sun 11.08.2013 14:47, meino.cramer@xxxxxx wrote:

Is there any chance to detach the running process, which compiles the kernel, from the ssh-session in a way that I am able to reboot the PC without breaking the kernel compilation

Use tmux or screen.

`dtach` and `reptyr` are other lesser-known tools that support just the attach/detach functionality of `tmux` or `screen` (which are basically terminal window managers). `dvtm`¹ ("dynamic virtual terminal manager") is another alternative in that realm.

`dtach`² (as the name implies) just supports the attaching and detaching feature.

The problem with `tmux`, `screen`, and `dtach` is that you have to use it before your process is running. If you've forgotten to tmux- or screen-ify the process beforehand, you might try `reptyr`³ (It "re-" "pty"'s a program.) It's Linux-only, and uses ptrace(2) hackery to attach a process running on a different pty to a new one.


¹: http://www.brain-dump.org/projects/dvtm/
²: http://dtach.sourceforge.net/
³: https://github.com/nelhage/reptyr

Messages sorted by: Reverse Date, Date, Thread, Author