Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site wivax.UUCP
Path: utzoo!linus!wivax!ss
From: ss@wivax.UUCP (Sid Shapiro)
Newsgroups: net.unix-wizards
Subject: Re: background processes under 4.2bsd
Message-ID: <19228@wivax.UUCP>
Date: Fri, 24-Feb-84 23:02:52 EST
Article-I.D.: wivax.19228
Posted: Fri Feb 24 23:02:52 1984
Date-Received: Sat, 25-Feb-84 04:42:39 EST
References: <989@druxy.UUCP> <5319@umcp-cs.UUCP>
Organization: Wang Institute, Tyngsboro, Ma.  01879
Lines: 16

[Recap: problem is to kill a background process automatically when
logged out.]

Another solution (I have just been reading Kernighan and Pike's book,
and I have become inspired to write shell scripts!)
Use a shell script to do various pipes with ps, grep, sed, tail, etc.
to isolate the PID of the process you wish to kill and use kill to
kill it.  I use one and it works just fine.  I have the script 
called by .logout.  It is a Bourne shell script.  It took me less
than 10 minutes to write!


Sid Shapiro -- Wang Institute of Graduate Studies
    [cadmus, decvax, linus, apollo, bbncca]!wivax!ss
    ss.Wang-Inst@Csnet-Relay 
	  (617)649-9731