Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!uunet!zephyr.ens.tek.com!orca.wv.tek.com!hobbes!garyc From: garyc@hobbes.wv.tek.com (Gary Combs) Newsgroups: comp.windows.x Subject: Re: motd under xdm? Message-ID: <10160@orca.wv.tek.com> Date: 19 Feb 91 20:45:15 GMT References: <1991Feb18.143837.16409@rice.edu> Sender: news@orca.wv.tek.com Reply-To: garyc@hobbes.wv.tek.com (Gary Combs) Organization: Tektronix, Inc., Wilsonville OR Lines: 30 Here is what I use: In my .x11init (.Xsession or others) I put /usr/local/bin/checkmotd It then checks /usr/local/bin/Motd. Here are the scripts. ------------- /usr/local/bin/checkmotd -------------------- #!/bin/sh if [ ! -f $HOME/.motd ] then touch $HOME/.motd sleep 5 xterm -geometry 70x24+110+120 -title "Message Of The Day" -fn LucidaV2RT14 -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 sleep 5 xterm -geometry 70x24+110+120 -title "Message Of The Day" -fn LucidaV2RT14 -e /usr/local/bin/Motd & fi fi ------------- /usr/local/bin/Motd -------------------- #!/bin/sh cat /etc/motd echo "Press return when done reading ..." read ans