From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10783 invoked by alias); 11 Aug 2013 18:05:41 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17917 Received: (qmail 12043 invoked from network); 11 Aug 2013 18:05:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at benizi.com designates 64.130.10.15 as permitted sender) Date: Sun, 11 Aug 2013 13:56:37 -0400 (EDT) From: "Benjamin R. Haskell" To: zsh-users@zsh.org Subject: Re: Really into the backgroung... In-Reply-To: <20130811134102.GA2688@blacky.xomit.de> Message-ID: References: <20130811124756.GA23837@solfire> <20130811134102.GA2688@blacky.xomit.de> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463809250-1900015726-1376243821=:10197" ---1463809250-1900015726-1376243821=:10197 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Sun, 11 Aug 2013, Timo Schmidt wrote: > On Sun 11.08.2013 14:47, meino.cramer@gmx.de 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. -- Best, Ben ¹: http://www.brain-dump.org/projects/dvtm/ ²: http://dtach.sourceforge.net/ ³: https://github.com/nelhage/reptyr ---1463809250-1900015726-1376243821=:10197--