Path: utzoo!attcan!uunet!ogicse!zephyr.ens.tek.com!orca.wv.tek.com!hobbes!garyc From: garyc@hobbes.wv.tek.com (Gary Combs) Newsgroups: comp.windows.x Subject: Re: Should login xterms show /etc/motd? Message-ID: <7700@orca.wv.tek.com> Date: 20 Jul 90 15:19:03 GMT References: <1990Jul18.200754.13129@cs.umn.edu> <678@venice.SEDD.TRW.COM> Sender: nobody@orca.wv.tek.com Reply-To: garyc@hobbes.wv.tek.com (Gary Combs) Lines: 49 Here is how I do it. I call a shell script 'checkmotd' from my .x11start file. This in turn calls another shell script 'Motd'. ------------------------------------------------------------------------ ----------- checkmotd: #!/bin/sh if [ ! -f $HOME/.motd ] then touch $HOME/.motd xterm -geometry 70x24+110+120 -title "Message Of The Day" -fn LucidaV2RT 14 -e /usr/local/bin/Motd & else whic="`ls -lt /etc/motd $HOME/.motd`" file="`echo $whic | awk ' { print $9 } '`" if [ "$file" = "/etc/motd" ] then touch $HOME/.motd xterm -geometry 70x24+110+120 -title "Message Of The Day" -fn Lu cidaV2RT14 -e /usr/local/bin/Motd & fi fi ------------------------------------------------------------------------ ----------- Motd: #!/bin/sh cat /etc/motd echo "Press return when done reading ..." read ans ------------------------------------------------------------------------------- Gary Combs Tektronix, Inc VSG Technical Marketing Support (503)685-2072 garyc@shamu.wv.tek.com -------------------------------------------------------------------------------