Re: Trouble killing a process.
From: Robert Binkley (leebinkley_at_YAHOO.COM)
Date: 09/08/05
- Previous message: bbb bb: "Re: [Q] remote access"
- In reply to: Juan Camilo Yanquen: "Re: Trouble killing a process."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: bbb bb: "Re: [Q] remote access"
- In reply to: Juan Camilo Yanquen: "Re: Trouble killing a process."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|