1 |
On Mon, 28 May 2007 20:54:27 +0100 |
2 |
Mick <michaelkintzios@×××××.com> wrote: |
3 |
|
4 |
> On Monday 28 May 2007 20:14, Albert Hopkins wrote: |
5 |
> > On Mon, 2007-05-28 at 18:52 +0100, Mick wrote: |
6 |
> |
7 |
> > > What is the way to send a console warning to anyone logged on a |
8 |
> > > machine before I reboot it? |
9 |
> > |
10 |
> > shutdown(8) does this for you. In addition there is wall(1). |
11 |
> |
12 |
> Of course wall! I had forgotten about that. There's also talk to tap |
13 |
> others on the shoulder. I assume all these will work if logged onto |
14 |
> a server via ssh? |
15 |
> |
16 |
> > > If the user is logged on a console I will only need to send it to |
17 |
> > > the console; in addition if the user is running webmin, or |
18 |
> > > phpadmin, then I would really like a popup of sorts to alert them |
19 |
> > > to log out (something like the net send command on MS Windows |
20 |
> > > running with the messenger service). |
21 |
> > |
22 |
> > I could give a long explanation on why in practice this never works |
23 |
> > (even for wall msgs), but it's not interesting. Instead I'll give |
24 |
> > you some real-world examples of what I've seen. |
25 |
> [snip...] |
26 |
> |
27 |
> Thank you for a very informative insight. :) |
28 |
|
29 |
Yes, it should work at ssh terminals too. My test verifies. |
30 |
|
31 |
A. Hopkins is right though; even if everyone _did_ work at the |
32 |
terminal, and not say at the screen, people using ncurses or redrawing |
33 |
the screen often at any rate could miss a wall message. |
34 |
-- |
35 |
gentoo-user@g.o mailing list |