[H-GEN] printing motd a page at a time

Bruce Campbell bc at thehub.com.au
Mon Aug 24 21:31:23 EDT 1998


On Tue, 25 Aug 1998, James Mcpherson wrote:

> On Mon, 24 Aug 1998, Laurence J. Rietberg wrote:
> > I use RH Linux, release 5.1; kernel v.2.1.117 on a dual-Pentium PC.
> > Printing the motd a page at a time sounds straightforward enough, but 
> > /etc/motd is supposed to be the message to be printed as used by login(1)
> > if .hushlogin is not present, so it is not a simple case of creating a small
> 
> if you use a text editor to write /etc/motd, you can put in ^L characters 
> to break the page. I think that as long as the terminal the user is logging
> in on has a defined response for that character in /etc/termcap and their
> PAGER environment variable is set then that should do what you need.

bah.  Put ^Ls in motd?  and depend on their $PAGER ?   Try reading the
manpage on 'news(1)' and put that in /etc/profile.

--==--
Bruce.





More information about the General mailing list