Created
December 14, 2012 08:36
-
-
Save n5i/4283665 to your computer and use it in GitHub Desktop.
unix. Send running process to background
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using the Job Control of bash to send the process into the background: | |
ctrl+z to stop (pause) the program and get back to the shell | |
bg to run it in the background | |
disown -h so that the process isn't killed when the terminal closes | |
Suppose for some reason Ctrl+Z is also not working, go to another terminal, find the process id (using ps) and run | |
kill -20 PID | |
kill -18 PID | |
kill -20 will suspend the process and kill -18 will resume the process, in your other terminal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment