Xref: utzoo comp.mail.misc:2319 comp.unix.xenix:7364 comp.unix.wizards:17899 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!oliveb!bunker!shap From: shap@bunker.UUCP (Joseph D. Shapiro) Newsgroups: comp.mail.misc,comp.unix.xenix,comp.unix.wizards Subject: Re: Checking for new mail (and killing bkgnd process on logout?) Message-ID: <7160@bunker.UUCP> Date: 30 Aug 89 13:06:28 GMT References: <105@csnz.co.nz> <1989Aug26.200813.15629@twwells.com> <64@calcite.UUCP> <128@isgtec.UUCP> Reply-To: shap@clunker.UUCP (Joseph D. Shapiro) Organization: ISC-Bunker Ramo, an Olivetti Company, Shelton, Ct Lines: 20 In article <128@isgtec.UUCP> bmw@isgtec.UUCP (Bruce Walker) writes: >My (slightly klugey) solution is to add a line to my .logout (csh): > > /bin/kill -9 `ps x | awk '$5=="checkmail" {print $1}'`& > >Anyone know a better way? when initiating it in .login: checkmail& echo $child > ~/kill.$$ in .logout: kill -9 ` cat ~/kill.$$ ` -- __--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__ Joe Shapiro "My other car is a turbo... ISC-Bunker Ramo ...too." {decvax,yale,philabs,oliveb}!bunker!shap