Article View: comp.mail.misc
Article #578Re: Checking for new mail (and killing bkgnd process on logout?)
From: gregg.g.wonderly
Date: Thu, 31 Aug 1989 17:24
Date: Thu, 31 Aug 1989 17:24
23 lines
1087 bytes
1087 bytes
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)
Technical Details
Message-ID:
<2853@cbnewsc.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!bellcore!att!cbnewsc!greggReferences:
<5933@ficc.uu.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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