From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16581 invoked by alias); 2 Oct 2015 18:45:24 -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: 20684 Received: (qmail 14046 invoked from network); 2 Oct 2015 18:45:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XY2JkqlHyt8zqqNOvxnRkj1JhURfVS8aSv1BcAD65Ws=; b=hkw+YhkQzBtIyGBzY+RdXZ1GqlKVx6DwXO2moH0ryRBK7MZZ3AGB1LJMmaCqX2Smkh kTa2B1PQTAEem1B6TqBK5KKD2tp75Mq4bZhfpLYdnM6sRKXFrM9wGsFE/+sIEvNdh6Ez isShvC5IiGF0cfWtfTHfi9xlBwxrl7c/f7gV1J7uq17cGriwn7uuuFC1VhJce0pgf7tH isfaKc29dRNmTcQm5jtGcAGIWteboCJXmjIwvKyJ18MJOQoWBXUS+o4UJnVJOo4BJ9pv S04MQ5ggK4VkMWZSjrLqM/NPSKGYEGJ9haYJn61AcdA2e+L5A4nXS/dQqQ0c4j1VGxuy 6RIA== MIME-Version: 1.0 X-Received: by 10.55.212.77 with SMTP id l74mr5678431qki.19.1443811521206; Fri, 02 Oct 2015 11:45:21 -0700 (PDT) In-Reply-To: <20151002143824.GA5942@linux.vnet.ibm.com> References: <20151002115632.GA13749@linux.vnet.ibm.com> <20151002143824.GA5942@linux.vnet.ibm.com> Date: Fri, 2 Oct 2015 20:45:21 +0200 Message-ID: Subject: Re: Really detaching jobs From: Mikael Magnusson To: vogt@linux.vnet.ibm.com, Zsh Users Content-Type: text/plain; charset=UTF-8 On Fri, Oct 2, 2015 at 4:38 PM, Dominik Vogt wrote: > On Fri, Oct 02, 2015 at 09:43:58PM +0900, Jun T. wrote: >> >> 2015/10/02 20:56, Dominik Vogt wrote: >> >> > Is there a way to *really* detach the job so that it will complete >> > if I close the terminal emulator or kill the ssh connection? >> >> You may try GNU screen: https://www.gnu.org/software/screen/ >> It has a "detach" command, which is exactly what you want. > > Yeah, but if I had known *in advance* that I'd have the problem, > I'd just have used nohup. So the question is really how to detach > a running process group from the controlling terminal, and whether > zsh can help with that in any way (which I guess it cannot). This may work with varying degrees of success, https://github.com/nelhage/reptyr -- Mikael Magnusson