Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: comp.mail.elm Subject: Re: newmail also displays on console (bug) Message-ID: <127@titania.warwick.ac.uk> Date: 24 Mar 89 13:39:36 GMT References: <316@wubios.wustl.edu> <890002@hpausla.HP.COM> <9120@b-tech.ann-arbor.mi.us> Reply-To: cudcv@warwick.ac.uk (Rob McMahon) Organization: Computing Services, Warwick University, UK Lines: 16 In article <9120@b-tech.ann-arbor.mi.us> zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) writes: >For systems with csh and job control, you could use the new newmail and put >"/bin/kill -1 -1" in .logout. This probably has bad effects for root and if >you are logged in more than once. Code for a better solution would be >welcomed. ... and if you've got any background jobs you want to survive. Nobody yet seems to have suggested a better method than to stash a copy of getlogin() away when you start up, and to compare that with the current value just before checking for mail, exiting if they don't match. Rob -- UUCP: ...!mcvax!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick ARPA: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England