The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

killall by process owner

Discussion in 'General Discussion' started by s3kk3y, Jun 20, 2003.

  1. s3kk3y

    s3kk3y Well-Known Member

    Joined:
    Oct 12, 2002
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    What is the cmd to killall owned by a specific owner?

    For example, if i wanted to kill all processes owned by nobody.

    Thanks.

    cPanel.net Support Ticket Number:
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Try this

    for i in '\ps -aux | grep usrname | awk '{print $2}''
    do
    kill -9 $i
    done

    cPanel.net Support Ticket Number:
     
  3. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    skill -9 username

    cPanel.net Support Ticket Number:
     
  4. X-Istencedotcom

    X-Istencedotcom Well-Known Member

    Joined:
    Apr 14, 2003
    Messages:
    223
    Likes Received:
    0
    Trophy Points:
    16
    killall -9 -u username on FreeBSD.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page