Re: [SLUG] *really* killing a process

From: Eben King (eben1@tampabay.rr.com)
Date: Thu Mar 11 2004 - 13:06:54 EST


On Thu, 11 Mar 2004, Kwan Lowe wrote:

>
> > That worked nicely, however, winex doesn't have a parent process :(
> > I wonder what I/O it's hooked to? Andrew M. Hoerter mentioned possibly some
> > sort of I/O. Now I'm thinking it's attached to a device driver or hardware.
> >
> > What's PPID and how do I get to it?
>
> The PPID is the Parent Process ID. On a 'ps -f' listing, it's the third field:
>
> UID PID PPID C STIME TTY TIME CMD
> kwan 16374 16372 0 10:50 pts/4 00:00:00 bash
> kwan 16584 16374 0 12:14 pts/4 00:00:00 ps -f
>
> The above shows that process 16584 was started by PPID 16374, which is bash.
>
> If you did a 'ps -ef', it would show that bash was started by an xterm, which
> in turn was started by the window manager:
>
> kwan 12988 1077 0 Mar09 ? 00:00:01 /usr/X11R6/bin/fluxbox
> kwan 14363 12988 0 Mar10 ? 00:00:01 xterm
> kwan 14365 14363 0 Mar10 pts/2 00:00:00 bash

If you do "ps -axfww | less -S", it'll show you graphically who started
whom. Apparently "f" means "ASCII-art process hierarchy (forest)" in this
case. I don't know what makes it different.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
PISCES:  Try to avoid any Virgos or Leos with the Ebola virus.
You are the Lord of the Dance, no matter what those idiots at
work say.  -- Weird Al, _Your Horoscope for Today_

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:12:40 EDT