SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 2nd, 2004, 02:26 AM
jimmo jimmo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 21 jimmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 31 m 21 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 2nd, 2004, 02:05 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
How about sending a STOP signal to the process?

Reply With Quote
  #3  
Old March 5th, 2004, 05:25 PM
Jalalov Jalalov is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 Jalalov User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Stop Running process

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.

Reply With Quote
  #4  
Old March 6th, 2004, 12:33 AM
Perderabo Perderabo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 121 Perderabo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 54 sec
Reputation Power: 5
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Suspending running processes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway