[K12OSN] Making a message pop up on a thin client

Michael Blinn mblinn at peopleplaces.org
Fri Oct 5 12:01:12 UTC 2007


Here's a script that uses zenity. Thanks to sbalneaves & ogra in #ltsp 
who put it together a few months ago.  This goes to all connected 
clients but I'm sure you can modify for just one.

Invoke it with

#scriptname  "This is my message"

-Michael

#!/bin/bash

for PID in $(pgrep metacity); do
   DISPLAY=$(cat /proc/${PID}/environ | tr '\0' '\n' | grep DISPLAY | 
sed -e 's/DISPLAY=//')
   XAUTHORITY=$(cat /proc/${PID}/environ | tr '\0' '\n' | grep XAUTH | 
sed -e 's/XAUTHORITY=//')
   zenity --info --text="$1" &
done



Nadav Kavalerchik wrote:
> checkout Robert's TeacherTool: 
> http://www3.telus.net/public/robark/Fl_TeacherTool/
> it does what you want and much more :-)
>
> On 10/5/07, *Carl Keil* <carl at snarlnet.com <mailto:carl at snarlnet.com>> 
> wrote:
>
>     Hey Folks,
>
>     I've always wondered about sneaky thin client tricks.  It seems like
>     there's got to be a way to blast some audio or pop up a message on a
>     thin client remotely, like from the command line.  Does anybody
>     know how
>     to do that?
>
>     Thanks,
>
>     ck
>
>     _______________________________________________
>     K12OSN mailing list
>     K12OSN at redhat.com <mailto:K12OSN at redhat.com>
>     https://www.redhat.com/mailman/listinfo/k12osn
>     For more info see <http://www.k12os.org>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>

-- 
 

CONFIDENTIALITY NOTICE:
This message, and any attachments that may accompany it, contain information that is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential, or otherwise exempt from disclosure under applicable law. If the recipient of this message is not the intended recipient, any disclosure, copying, or other use of this communication or any of the information, which it contains is unauthorized and prohibited.  If you have received this message in error, please notify the original sender by return mail and delete this message, along with any attachments, from your computer. Thank you.  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20071005/7ee0937d/attachment.htm>


More information about the K12OSN mailing list