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

Re: detach a process and bring into GNU screen



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