Cron, /etc/motd & cronlog (SV)

Alan Fargusson alan at drivax.UUCP
Sun Jun 23 16:02:38 AEST 1985


> 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.
> 					tanks,

On our system /etc/profile has the following:

-sh | -rsh)
	trap : 1 2 3
	cat /etc/motd
	.
	.
	.
	;;
-su)
	:
	;;
esac
trap 1 2 3

I think that this is basicly the way AT&T distributed it.
-- 

Alan Fargusson.

{ ihnp4, amdahl, mot }!drivax!alan



More information about the Comp.unix.wizards mailing list