Subject: Re: killpg: well, something's not right...
To: Gandhi woulda smacked you <greywolf@starwolf.com>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 04/07/1999 23:15:06
>A couple of things:  I notice that there is no 'pgrp' field in ps
>by which to display pgrps.  I can't even tell which pgrp it's
>part of.

> ps j
USER       PID  PPID  PGID   SESS JOBC STAT TT       TIME COMMAND
andrew   21763 21760 21763 9bd7e0    0 Ss   p0    0:00.76 -tcsh (tcsh)
andrew   21824 21763 21824 9bd7e0    1 T    p0    0:01.56 mutt -f=IN.netbsd.cur
andrew   21854 21824 21824 9bd7e0    1 T    p0    0:00.01 sh -c emacs -nw '/hom
andrew   21855 21854 21824 9bd7e0    1 T    p0    0:01.11 emacs -nw /home/andre
andrew   21857 21763 21857 9bd7e0    1 R+   p0    0:00.01 ps -j 

tcsh is in its own process group, mutt (and children) are in theirs,
and ps is in a third (since i had to suspend mutt to get some sample
output).

tcsh takes care of all of this as a matter of job control.  :)

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."