msg_all.sh:
#!/bin/bash
MSG="\"$*\""
if [ "$MSG" = "\"\"" ]; then
MSG="\"Rebooting in 5 minutes. Please save your data.\"";
fi
who | grep ":0/" | awk '{ print $1 " " $2 }' | sed 's/:0\///g' |
{
while read user screen;
do
su $user -c "xmessage -center -display $screen:0 $MSG &"
done
}
You can start it with ./msg_all.sh [message]
If you don't give an option it'll take the default message ...
Enjoy!
cu
Fabian
PS: I'm not subscribed to list, so please cc me ...
PPS: Great idea! Anyway :-)
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f�r 1 ct/ Min. surfen!
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.openprojects.net