From owner-freebsd-questions Wed May 29 16:03:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA19499 for questions-outgoing; Wed, 29 May 1996 16:03:53 -0700 (PDT) Received: from soda.CSUA.Berkeley.EDU (soda.CSUA.Berkeley.EDU [128.32.43.52]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id QAA19491 for ; Wed, 29 May 1996 16:03:51 -0700 (PDT) Received: (from richardc@localhost) by soda.CSUA.Berkeley.EDU (8.6.12/8.6.12) id QAA10860; Wed, 29 May 1996 16:02:28 -0700 Date: Wed, 29 May 1996 16:02:26 -0700 (PDT) From: Veggy Vinny To: Terry Lambert cc: terry@lambert.org, questions@freebsd.org Subject: Re: long motd files - screen pause? In-Reply-To: <199605292120.OAA14450@phaeton.artisoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 29 May 1996, Terry Lambert wrote: > > > > > > > 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. Hmmm, okay but how do some machines make the motd pause even before it knows the termcap? Vince