Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: detach a process and bring into GNU screen
- X-seq: zsh-users 12804
- From: Achille <achille.listserv@xxxxxxxxx>
- To: "Alexy Khrabrov" <deliverable@xxxxxxxxx>
- Subject: Re: detach a process and bring into GNU screen
- Date: Tue, 22 Apr 2008 01:15:35 -0400
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=9/GDa0LoPcxIKZE1fISI3C+Milgm0H9mqMesqUmYSvU=; b=elRo/dDA/2v0RNJBQBvOvUFexnuGQu/16oyxkhaGw9FQsTHxkE4R1mxr5d2VEkzc8nRHWhBC9mrb/7TC3c2g7NclTIGWcZPT6id2BvqXGRLD+lM4IpEHAbyqe5EkHQn53zbD/uMwf8XwuwTgLHqsbK0bnJ2M6x7gTyEJWXfep4w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cJCeP+QC9O0lCmMXoeRuA+yoBjrXePh6lsOJMbxuKwBsZdyNbGB9geIhQ+ypC/QKWvWCirV8++nfN6QDlR3savhYSSxuwIFieZQNzVdLWEY/djlAsQw/qu6C5w8ZAI38i2gCRxAeqlnvncsCiEBBrINJW8F7VbBRg206DEo8Pv4=
- In-reply-to: <5762C832-AE51-46E4-8894-B083601ADFA4@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <5762C832-AE51-46E4-8894-B083601ADFA4@xxxxxxxxx>
Here's another way to do the same, using 'ls -R /' as an example of a
long running process.
Use the following script: http://achille.org/screenify.sh
Naked shell:
* ls -R / (starts the long process)
* ctrl-z (pause it for a second, go back to the shell)
* disown (will disown the child process, so that it won't die when parent dies)
Inside screen:
./screenify.sh PID (disown will tell you the PID)
From a different shell:
kill -CONT pid (will restart the process)
You can now kill the naked process.
Should theoretically do the same thing as retty, but the latter does
not work for me (debian, xen kern).
Cheers
Messages sorted by:
Reverse Date,
Date,
Thread,
Author