From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1Hu8uq-0000DD-Iw for garchives@archives.gentoo.org; Fri, 01 Jun 2007 15:19:49 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l51FIQwH028147; Fri, 1 Jun 2007 15:18:26 GMT Received: from spore.ath.cx (c-24-245-14-14.hsd1.mn.comcast.net [24.245.14.14]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l51FE7xw023425 for ; Fri, 1 Jun 2007 15:14:08 GMT Received: from pascal.spore.ath.cx (pascal.spore.ath.cx [192.168.1.100]) by spore.ath.cx (Postfix) with ESMTP id 9DA1767BE2 for ; Fri, 1 Jun 2007 10:14:04 -0500 (CDT) Date: Fri, 1 Jun 2007 10:14:04 -0500 From: Dan Farrell To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Sending console messages on Users Message-ID: <20070601101404.2195931b@pascal.spore.ath.cx> In-Reply-To: <200705282054.37450.michaelkintzios@gmail.com> References: <200705281852.35730.michaelkintzios@gmail.com> <1180379678.8155.25.camel@blackwidow.nbk> <200705282054.37450.michaelkintzios@gmail.com> Organization: Spore, Ltd. X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.6; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 91bb7609-f2e3-4a98-82f7-9e9fdf5bb5fb X-Archives-Hash: 96500e33d9f6cecfaa24ec501a26adac On Mon, 28 May 2007 20:54:27 +0100 Mick wrote: > On Monday 28 May 2007 20:14, Albert Hopkins wrote: > > On Mon, 2007-05-28 at 18:52 +0100, Mick wrote: > > > > What is the way to send a console warning to anyone logged on a > > > machine before I reboot it? > > > > shutdown(8) does this for you. In addition there is wall(1). > > Of course wall! I had forgotten about that. There's also talk to tap > others on the shoulder. I assume all these will work if logged onto > a server via ssh? > > > > If the user is logged on a console I will only need to send it to > > > the console; in addition if the user is running webmin, or > > > phpadmin, then I would really like a popup of sorts to alert them > > > to log out (something like the net send command on MS Windows > > > running with the messenger service). > > > > I could give a long explanation on why in practice this never works > > (even for wall msgs), but it's not interesting. Instead I'll give > > you some real-world examples of what I've seen. > [snip...] > > Thank you for a very informative insight. :) Yes, it should work at ssh terminals too. My test verifies. A. Hopkins is right though; even if everyone _did_ work at the terminal, and not say at the screen, people using ncurses or redrawing the screen often at any rate could miss a wall message. -- gentoo-user@gentoo.org mailing list