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

Re: Really detaching jobs



On Fri, Oct 2, 2015 at 4:38 PM, Dominik Vogt <vogt@xxxxxxxxxxxxxxxxxx> wrote:
> On Fri, Oct 02, 2015 at 09:43:58PM +0900, Jun T. wrote:
>>
>> 2015/10/02 20:56, Dominik Vogt <vogt@xxxxxxxxxxxxxxxxxx> 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



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