Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 1996 14:20:49 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        richardc@CSUA.Berkeley.EDU (Veggy Vinny)
Cc:        terry@lambert.org, questions@freebsd.org
Subject:   Re: long motd files - screen pause?
Message-ID:  <199605292120.OAA14450@phaeton.artisoft.com>
In-Reply-To: <Pine.PTX.3.91.960529133653.29367o-100000@soda.CSUA.Berkeley.EDU> from "Veggy Vinny" at May 29, 96 01:37:33 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > > > > > 	Use a smaller motd.  Use the UNIX 'news' package (*not* netnews)
> > > > > > 	in the /etc/csh/cshrc, et al.
> > > > > 
> > > > > 	I'm not sure how CSUA.Berkeley.EDU does it, it's running on a
> > > > > Sequent machine running Dynix but would news do it?
> > > > 
> > > > I'm pretty sure 'news' uses 'more'.
> > > 
> > > 	Hmmm, how is the motd displayed like what program generates it 
> > > upon logging in?
> > 
> > /bin/login if ~/.hushlogin doesn't exist.
> 
> 	Hmmm, so I just need to modify /bin/login to do |more when it cats
> the file?

more uses the termcap to get the size of the screen so it knows when
to say more.

The termcap isn't set until after you login, unless you are using
rlogin/telnet/xterm or some other convention that passes the user
environment to the system being logged into.

So you need to be logged all the way in for login to be able to
display using "more" before you are logged all the way in.

In other words, if you do it in login, you will need to have some
information which it is impossible for you to have.  Which is why
I suggested the "system news" package instead, since it can be
run globally *after* login.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605292120.OAA14450>