Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site ih1ap.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!ihnp4!ih1ap!jfs From: jfs@ih1ap.UUCP (Jesse Fred Shumway) Newsgroups: net.unix-wizards Subject: Re: Cron, /etc/motd & cronlog (SV) Message-ID: <489@ih1ap.UUCP> Date: Fri, 21-Jun-85 11:47:43 EDT Article-I.D.: ih1ap.489 Posted: Fri Jun 21 11:47:43 1985 Date-Received: Sun, 23-Jun-85 00:50:05 EDT References: <168@megad.UUCP> Distribution: net Organization: AT&T Bell Laboratories Lines: 17 > The message of the day ("/etc/motd") is printed in the cronlog file every > time an "su - user -c command" is executed by cron. Does anyone know how > to supress the "printing" of /etc/motd when using the "-" option to su? > It would make the cronlog smaller and more easily read. We use Uniplus+ > System V. I assume that if "user" has mail that fact is also noted in the cronlog. The problem probably resides in /etc/profile; which should check $0 to see if it was invoked as "-su" or "-sh|-rsh". Only in the latter case should it cat /etc/motd and announce that mail is present. Check your original distribution and if it doesn't do this you might call the Uniplus+ people and ask why they so gracelessly munged /etc/profile. Or, maybe /bin/su isn't changing $0 to "-su". Jesse Fred Shumway AT&T-NS (312) 510-7880