From owner-freebsd-questions Fri Mar 16 23:18:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from jason-n3xt.org (crtntx1-ar3-088-078.dsl.gtei.net [4.41.88.78]) by hub.freebsd.org (Postfix) with ESMTP id B735537B718 for ; Fri, 16 Mar 2001 23:18:13 -0800 (PST) (envelope-from jason@jason-n3xt.org) Received: from jason (crtntx1-ar3-088-096.dsl.gtei.net [4.41.88.96]) by jason-n3xt.org (8.11.1/8.11.1) with SMTP id f2H7II415651; Sat, 17 Mar 2001 07:18:18 GMT (envelope-from jason@jason-n3xt.org) From: "Jason Halbert" To: "Mike Meyer" Cc: Subject: RE: System Announcement Date: Sat, 17 Mar 2001 07:18:04 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <15026.59486.994191.219290@guru.mired.org> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hmm... Why is it that I can always seem to figure out the hard stuff but easy stuff like this I can't seem to find. >=\ --- Jason > -----Original Message----- > From: Mike Meyer [mailto:mwm@mired.org] > Sent: Saturday, March 17, 2001 04:30 > To: Jason Halbert > Cc: questions@freebsd.org > Subject: Re: System Announcement > > > Jason Halbert types: > > Hello: > > Is there a way of making a system announcement? I need > one that users > > will get when they log in and then again occasionally > while they are > > logged in. I need to announce system restarts and such. > > To pull the answers into one place, and add a bit: > > /etc/motd is displayed to all user who haven't disabled it on > login. If you've got a recent system, you can use the if field of > /etc/gettytab to to provide a bit finer control, though I've not > played with it. > > For announcements to everyone currently logged in, use wall. For > system restarts, the shutdown command does everything you want. You > can schedule the shutdown for a specific time, and provide a message > to be sent to everyone with at various intervals until the shutdown > time arrives. Try "shutdown -k +30 Quake is to slow." to see it in > action without actually shutting down the system. > > Read the man pages for shutdown, wall, and motd for more > information. The man page for gettytab doesn't really provide more > information about /etc/issue :-(. > > > -- > Mike Meyer > http://www.mired.org/home/mwm/ > Independent WWW/Perforce/FreeBSD/Unix consultant, email for > more information. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message