Results 1 to 3 of 3

Thread: Sleep command

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Answers
    1

    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?


  2. #2
    Expert Member
    Join Date
    Jan 2008
    Answers
    133

    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.


  3. #3

    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 --------------------------------------------------------------------------------


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact