On Fri, Apr 3, 2009 at 12:27 PM, Narayan Desai <[email protected]> wrote: > On Thu, 2 Apr 2009 17:54:47 -0400 Edward Ned Harvey wrote: > > Ned> It would appear "process group" isn't the right thing to look for. I > am looking into it now ... > Ned> ps -eo "%U%p%P%g%c" > > Ned> seems to indicate that all of my processes have the same process > Ned> group. Even all my colleagues have the same process group. So > Ned> if I were to "killall -g" I would be attempting to kill > Ned> everything of mine, and all my colleagues too ... Not just an > Ned> isolated process tree. > > Shouldn't you be using %r to get pgid? ps -eo user,pid,pgid does what > I'd expect it to. > -nld
From the OP they were using bash shell - so were possibly using the shell's builtin "kill" command which doesn't have a -p option. Try using /bin/kill to get the version matching the man page - or see "man bash" for the shell builtin kill command. Not sure about other distro's but on Ubuntu you can use "pkill -signal -P ppid" (where ppid is the parent process id) This will send the signal to the parent process id, and all its children. Cheers, -- Craig Ayliffe _______________________________________________ Tech mailing list [email protected] http://lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/
