Prepare for your Next Interview
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?...
|
|||
|
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?
|
| Sponsored Links |
|
|||
|
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. |
|
|||
|
Quote:
ptionexplanationeshows 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 -------------------------------------------------------------------------------- |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |