Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site aecom.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!cmcl2!philabs!aecom!naftoli From: naftoli@aecom.UUCP (Robert N. Berlinger) Newsgroups: net.unix-wizards Subject: Re: Re: Cron, /etc/motd & cronlog (SV) Message-ID: <1773@aecom.UUCP> Date: Mon, 1-Jul-85 11:32:12 EDT Article-I.D.: aecom.1773 Posted: Mon Jul 1 11:32:12 1985 Date-Received: Wed, 3-Jul-85 20:08:46 EDT References: <168@megad.UUCP> <162@drivax.UUCP> Distribution: net Organization: Albert Einstein Coll. of Med., NY Lines: 16 > > 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. Change the line that says 'cat /etc/motd' to: if [ -t ] then cat /etc/motd fi The cat will only execute if the standard output is a terminal. -- Robert Berlinger ...{philabs,cucard,pegasus,ihnp4,rocky2}!aecom!naftoli