Xref: utzoo comp.mail.misc:2327 comp.unix.xenix:7389 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!bellcore!att!cbnewsc!gregg From: gregg@cbnewsc.ATT.COM (gregg.g.wonderly) Newsgroups: comp.mail.misc,comp.unix.xenix Subject: Re: Checking for new mail (and killing bkgnd process on logout?) Message-ID: <2853@cbnewsc.ATT.COM> Date: 31 Aug 89 17:24:45 GMT References: <5933@ficc.uu.net> Organization: AT&T Bell Laboratories Lines: 23 In article <128@isgtec.UUCP>, bmw@isgtec.UUCP (Bruce Walker) writes: > You are supposed to start it like this (usually from .login): > $ checkmail& > 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? Yes, just do sh -c 'checkmail &' This will start the process as a subprocess of sh(1) with the process group left intact. Last I knew, the bourne shell had not been infected with this bug. I say bug because it really is. The process should get SIGHUP unless I 'nohup' it myself. -- ----- gregg.g.wonderly@att.com (AT&T bell laboratories)