Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Kill the family !!! (or kill mulitiple processes)

1 view
Skip to first unread message

zhong yu

unread,
Jun 7, 1996, 3:00:00 AM6/7/96
to

Hi:
This is more like an unix question. How to you kill a process
and all its child processes? When you launch a script, it launches another
script, and another script launches another script, there are three layers
to the original script. My question is what's the unix command to kill
all process started by the original script? I tried "kill -TERM -pid"
and "kill -9 -pid", don't work. (pid is the process id for the original
script). It only kills the parent script, but not the children and
grandchildren.
Any ideas? come on, you unix gurus! (my sys. admin doesn't know
how! =) )
P.S. I think we can use some politcal correctness for unix.
change "man to person", "kill to terminate", etc. =)

Thanks.

Clark Zhong

Jan Wieck

unread,
Jun 10, 1996, 3:00:00 AM6/10/96
to

zhong yu (y-z...@ux7.cso.uiuc.edu) wrote:
: Hi:

Hot, extremely hot, more extremely hot. You're very close.
It's right that you have to use a negative pid number to
specify a process group id. What you missed was to tell the
toplevel father process to create a new process group with
that id. TclX has what you need:

id process group set


Until later, Jan

--
#define OPINIONS "they are all mine - not those of debis or daimler-benz"

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================== wi...@sapserv.debis.de (Jan Wieck) #

0 new messages