Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!whuts!mtune!rutgers!ukma!uunet!mcvax!enea!kuling!irf From: irf@kuling.UUCP Newsgroups: comp.unix.questions Subject: Re: q: being notified of new mail Message-ID: <541@kuling.UUCP> Date: Fri, 30-Oct-87 12:33:19 EST Article-I.D.: kuling.541 Posted: Fri Oct 30 12:33:19 1987 Date-Received: Tue, 3-Nov-87 02:08:06 EST References: <4350001@wdl1.UUCP> <9111@mimsy.UUCP> Reply-To: irf@kuling.UUCP (Stellan Bergman) Organization: Dept. of Computer Systems, Uppsala University, Sweden Lines: 21 In article <9111@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >In article <4350001@wdl1.UUCP> garyo@wdl1.UUCP (gary ogasawara) writes: >>What do I have to do so that when new mail arrives, I am interrupted >>and a message is displayed on my window? >In (some?) C shells, you can set a variable called `mail' that tells >the shell to announce new mail before printing a prompt: > set mail = /usr/spool/mail/$user >or > set mail = (600 /usr/spool/mail/$user) In HP-UX I write set mail = (60 /usr/mail/$LOGNAME /etc/motd) and get notified if, within the last 60 seconds, there is new mail for me or if there is a new "message-of-the-day" (motd). ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Bo Thide', Swedish Institute of Space Physics. UUCP: ...enea!kuling!irfu!bt :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::