Re: Trouble killing a process.

From: Robert Binkley (leebinkley_at_YAHOO.COM)
Date: 09/08/05

  • Next message: Robert Binkley: "Procedure Needed to upgrade cws 5.1 to 5.2"
    Date:         Thu, 8 Sep 2005 08:04:41 -0700
    To: aix-l@Princeton.EDU
    
    

    #!/bin/ksh

    ########################################################
    # killpdiuser <pdiusername>
    ########################################################

    user=$1
    group=`lsuser $user | awk -F= '{print $3}' | awk
    '{print $1}'`

    if [[ $group = "pdi" ]]
    then
            echo "Killing rmcobol process for $user ..."
            kill -9 `ps -u $user -o pid=`
    else
           echo "\nusage: killpdiuser <username>"
            echo "example: killpdiuser l01147\n"
    fi

    --- Juan Camilo Yanquen <jcyanquen@SISA-SA.COM> wrote:

    > fuser -kuxc /dev/cd0
    >
    > ---- Original Message ----
    > From: Green, Simon
    > Date: Thu 9/8/05 4:03
    > To: aix-l@Princeton.EDU
    > Subject: Re: Trouble killing a process.
    >
    > Have you checked whether they have any child
    > processes? If so, you might
    > have to kill those first.
    >
    > --
    > Simon Green
    > Altria ITSC Europe s.a.r.l.
    >
    > AIX-L Archive at
    > https://new-lists.princeton.edu/listserv/aix-l.html
    > New to AIX?
    >
    http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
    >
    > N.B. Unsolicited email from vendors will not be
    > appreciated.
    > Please post all follow-ups to the list.
    >
    > -----Original Message-----
    > From: IBM AIX Discussion List
    > [mailto:aix-l@Princeton.EDU] On Behalf Of Drew
    > T
    > Sent: 07 September 2005 18:55
    > To: aix-l@Princeton.EDU
    > Subject: Trouble killing a process.
    >
    >
    > We have two processes running that I can't kill with
    > a "kill -9".
    >
    > Any ideas on how to kill this process?
    >
    > Thanks in advance.
    >
    > Here are the processes I would like to kill:
    >
    > # ps -ef | grep [m]kcd
    > root 98342 1 0 Aug 31 - 0:00
    > /bin/ksh /usr/sbin/mkcd -d
    > /dev
    > /cd0 -L -P -e -M /mkcd -C /mkcd -I /mkcd -V rootvg
    > root 75274 1 0 Sep 01 - 0:00
    > /bin/ksh /usr/sbin/mkcd -d
    > /dev
    > /cd0 -L -P -e -M /mkcd -C /mkcd -I /mkcd -V rootvg
    >

    Robert Lee Binkley leebinkley@yahoo.com
     IBM AIX Specialist Certified
     HP-UX System Administration Certified
    Work It's Nice To Be Important But It's More Important To Be Nice


  • Next message: Robert Binkley: "Procedure Needed to upgrade cws 5.1 to 5.2"

    Relevant Pages

    • Re: Had to draw my pistol today
      ... we had a neighbourhood "feral child" who ... would inspect any unlocked door to determine if there were any animals ... and kill every one of you. ...
      (rec.crafts.metalworking)
    • Re: The GIMME state
      ... but we don't kill people because of it. ... If you are the father of a child, ... Then don't bang a woman who would abort your child. ...
      (alt.smokers.cigars)
    • Re: [patch 4/7 -mm] oom: badness heuristic rewrite
      ... But in current OOM logic, we try to kill child instead of forkbomb ... Another guys already pointed out why we care child. ... We have _always_ tried to kill a child of the selected task first if it ...
      (Linux-Kernel)
    • Re: Killing a process that takes too long
      ... and it does not guarantee that the child ... You can test it by placing $$ (process pid) in the output of these two ... So we need a way to kill several processes of the process group of the parent, ...
      (perl.beginners)
    • Re: What is wrong with people? REALLY! OMG
      ... to those saying "would you kill someone" because a doctor told you to. ... Let's go back and criminalize them and those who followed their advice thinking it was the best thing going. ... Don't know if they did't have DNA testing to tell if they were XX or XY or whether they just figured they'd change child to whatever it was easier to make their genitals into surgically. ... All is fine - until they hit puberty - then the shit hits the fan for the poor kids who have no idea what or who they are. ...
      (sci.med.transcription)