|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Suspending running processes
Hi All!
someone recently asked me if there was any way to suspend a running process that was started by someone else. Job control with specific shells came to mind, but as far as I know that does not work for processes in other process groups. The real question had to do with processes that were taking up too much CPU time, so I suggested the renice command. However, I am still wondering if someone knows of a way of suspending a running process that someone else started (obviously the would only work as root) Any help is greatly appreaciated. Regards, jimmo |
|
#2
|
||||
|
||||
|
How about sending a STOP signal to the process?
|
|
#3
|
|||
|
|||
|
Hi Jimmo,
Try this: % top check which processes and taking so much CPU ressources and then kill this one with: % kill PID (Soft kill) or : % kill -9 PID (Hard kill) Jalalov. |
|
#4
|
|||
|
|||
|
Ack! He didn't want to kill the process, just suspend it. Munkfish had it right. Send a SIGSTOP to the process and it will suspend execution. And later send a SIGCONT to the process and it will resume execution.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Suspending running processes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|