Geeks Talk

Prepare for your Next Interview




Sleep command

This is a discussion on Sleep command within the Unix/Linux forums, part of the Operating Systems category; Having problems using the commands ps, cut, tr and kill, along with pipes, need a command that will find all sleep processes running on the system and kill them?...


Go Back   Geeks Talk > Operating Systems > Unix/Linux

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-13-2008
Junior Member
 
Join Date: Dec 2007
Location: NH
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
archie42 is on a distinguished road
Sleep command

Having problems using the commands ps, cut, tr and kill, along with pipes, need a command that will find all sleep processes running on the system and kill them?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-15-2008
Junior Member
 
Join Date: Jan 2008
Location: Tokyo
Posts: 22
Thanks: 1
Thanked 2 Times in 2 Posts
jana05 is on a distinguished road
Question Re: Sleep command

Are you sure this is the problem

There could be processes/daemons which are just sleeping but essential for the keeping the system sane. Killing this as root could have disastrous effects. For example, if you are in GUI and have running a lot of programs like browsers, messengers, document editors, mail clients, etc...... If you just run a "ps -aux" command on the terminal and no other IO activity, then your system could show all the process sleeping and just your "ps -aux" as running. Kill all the sleeping process is bring the system to a halt.
Reply With Quote
  #3 (permalink)  
Old 03-14-2008
Junior Member
 
Join Date: Mar 2008
Location: gaziabad
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Soumit Bhattacharyya is on a distinguished road
Arrow Re: Sleep command

Quote:
Originally Posted by archie42 View Post
having problems using the commands ps, cut, tr and kill, along with pipes, need a command that will find all sleep processes running on the system and kill them?
create, monitor, and kill processes: includes running jobs in the foregroundand background, bringing a job from the background to the foreground andvice versa, monitoring active processes, sending signals to processes, andkilling processes. Includes using commands ps, top, kill, bg, fg, and jobs. Report process status :: *ps you can view all the processes that linux is running using the ps command.the syntax for ps is shown below: ps option(s)some common ps options areptionexplanationeshows the environmentfformats the output as a tree, showing parent and childprocessesadisplays all processeslprovides more detail including nice valuesushows who each process belongs to x shows processes without an associated terminalnote that with ps the - is not needed before the option.an example of using ps is illustrated below:[clive@ext7144 /etc]$ ps aux ¦ less c.r.gouldsection a objective 5 page 2linux administration --------------------------------------------------------------------------------
Reply With Quote
Reply

  Geeks Talk > Operating Systems > Unix/Linux


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
RE: sleep commands archie42 Unix/Linux 0 01-12-2008 07:36 PM
printf used along with sleep sarith Unix/Linux 1 06-16-2007 04:49 PM
Want to know about this command christia Windows 2 11-01-2006 09:09 AM
Can you tell the command christia Unix/Linux 1 09-09-2006 04:00 PM
Can you brief about this command RyanJames Unix/Linux 1 08-31-2006 03:29 PM


All times are GMT -4. The time now is 08:31 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved