Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 1996 15:10:23 -0700 (PDT)
From:      Veggy Vinny <richardc@CSUA.Berkeley.EDU>
To:        Mike Pritchard <mpp@freefall.freebsd.org>
Cc:        kelly@fsl.noaa.gov, terry@lambert.org, questions@FreeBSD.ORG
Subject:   Re: long motd files - screen pause?
Message-ID:  <Pine.PTX.3.91.960530150811.29367s-100000@soda.CSUA.Berkeley.EDU>
In-Reply-To: <199605302136.OAA29042@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 30 May 1996, Mike Pritchard wrote:

> Veggy Vinny wrote:
> > 
> > On Thu, 30 May 1996, Mike Pritchard wrote:
> > 
> > > Sean Kelly wrote:
> > > > 
> > > > >>>>> "Veggy" == Veggy Vinny <richardc@CSUA.Berkeley.EDU> writes:
> > > > 
> > > >     Veggy> 	Hmmm, okay but how do some machines make the motd
> > > >     Veggy> pause even before it knows the termcap?
> > > > 
> > > > By ``cheating'' with the default user setup, perhaps.
> > > 
> > > If all you want is to have the thing paged, just run
> > > it through more.  If the term type is undefined, more
> > > will simply pause after 24 lines, assuming that it is
> > > a simple "dumb" terminal.  You can't screw up too
> > > much by assuming that (hard copy terminal maybe, but
> > > the right options to more might even eliminate that).
> > > If you get lucky, and the terminal type has been supplied 
> > > by rlogin or whatever, you are even better off.
> > 
> > 	How do you get the motd to be displayed through more like what 
> > needs to be done?
> 
> You would need to modify the login program to exec to fork and exec more
> on /etc/motd.

	Hmm, okay...

> However, I like the other alternatives mentioned before better.
> Mostly because having a /etc/motd file that is automatically
> paged at login could possibly cause problems for automated login
> scripts.  My ISP's PPP connection method used to require that
> you fully login first and then run a command to establish the
> PPP connection.  It would have been a pain if I had to worry about 
> sending an extra c/r or two to make the motd display go away
> when using my automated PPP scripts.
> 
> Plus very long motds can cause problems if the user uses
> something like "qterm" in their .login, since the output
> might not drain in time, and qterm will timeout and not
> set the terminal type correctly.  
> 
> Try using "msgs" or something else instead of overly long
> motds, as was suggested by someone else.  You can
> always put "msgs -q" in /etc/csh.cshrc and /etc/profile
> to notify users that there are new messages available.
> If the message is really that important, a few line description in
> /etc/motd pointing them at the "msgs" message should suffice.

	One question though, is there like a way to do a system default 
.hushlogin since there is one for .cshrc and .login in /etc/csh.cshrc and 
/etc/csh.login as it'll be hard putting one in evey users directory on 
the system as there are over 1500 users in the database.  Also, is there 
a way to change everyone's group numbers to 32 without doing each one 
manually in vipw?

Vince





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.PTX.3.91.960530150811.29367s-100000>