From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075323306515.tru64-unix-managers.marc@archive.invalid> From: Murat Balci Date: Sun, 10 Sep 1995 13:03:24 +0000 To: tru64-unix-managers Subject: SUMMARY mail. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075323306515 Hi, My original question was ; - o - Hi, I want to change the message that appear when users loged in that says "You have new mail" with a macro like echo "You have" `from | wc -l` "new mail" How can I do that ? I wrote the second one to /etc/csh.login but, first "You have new mail" appears and than " You have X new mail". Is it possible to disable the first one ? Thanx in advance. murat. - o - I had some questions, thanx for all. Some of which are as follows ; Norman Wilson My Alpha (still!) hasn't arrived yet, but I'm pretty sure that the `You have new mail' message is printed by login; the only way to disable it is probably to create a `.hushlogin' file in each user's home directory. (Maybe OSF/1 login has some configuration table somewhere where you can do that globally, but I don't know where it is). .hushlogin will also turn off the `last login' message normally printed by login, and will prevent login from displaying /etc/motd. You can arrange for /etc/csh.login and /etc/profile to do those things too, of course. - Liz Stewart There is a daemon that runs that produces that "You have new mail" message, I believe it is called comsat. If you disable it, then you will not get the two message. Check in the inetd configuration file, I think you'll find it there. - Paul A Sand Paul A Sand I believe a .hushlogin file in the users' home directories will shut just about every ``default'' login message off. Unfortunately, that might be MORE than you want to do. But also "Michael A. Crowley" said ; I'd advise against that. There are too many instances when checking from lines fails or gives misleading information. With a larger mail folder, it adds to login processing. - Yes, this is true ! Unfortunately after adding my script to /etc/csh.login logins became *slow*, and then I removed it. Anyway, I thanx all for their answers. Sincerely. murat. ---- Murat Balci UNIX sys. Admin s-mail : Ege Universitesi B.A.U.M - Bornova, IZMIR, TURKIYE. e-mail : balci@baum01.ege.edu.tr Phone :+(90)(232)3881080-253