Process Handling

From Newroco Tech Docs
Revision as of 06:37, 8 September 2017 by Emilian.mitocariu (talk | contribs) (Created page with "If you need to pause and resume a background process you can use kill command Search for a process and find the PID: <pre>root@Vincent:~# ps aux | grep ping emilian 8169...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you need to pause and resume a background process you can use kill command

Search for a process and find the PID:

root@Vincent:~# ps aux | grep ping
emilian   8169  0.0  0.0  14948  1840 pts/25   S+   09:33   0:00 ping google.com
root      8171  0.0  0.0  15752   944 pts/24   S+   09:33   0:00 grep --color=auto ping

The first process is the one we need, and the PID can be found in the second column.

Pause the process

kill -STOP 8169

Resume the process

kill -CONT 8169