Results 1 to 6 of 6
  1. #1

    kill processes+linux

    A user has multiple processes running, I don't want to kill them manually i.e. kill -9 123345 .

    I want to kill them with one command, any idea what the command might be?


  2. #2
    Join Date
    Jul 2001
    That can easily be automated with a Perl script :

    let it run a ps and assign the columns of every line to a variable. If the 'owner' column matches the one you want to be killed, let the script kill the 'PID' (variable of column xx) from the same line.

    You can even cron it this way.


  3. #3
    Thanks Carl, but too much work . I would think there is a way to do all this with one command. Anyone have a clue?

  4. #4
    Join Date
    Nov 2000
    Moran, Ks

  5. #5
    Thanks alot!!!

  6. #6
    Here's one that I find works on many systems ...

    ps waux | grep username | awk '{print $2}' | xargs kill -9
    .:. Hostnix .:.
    Reliable Unix & VDS/VPS Hosting
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts