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

Carl Keil carl at snarlnet.com
Sat Oct 6 07:12:49 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 Ka
>

Thanks for the replies.  I haven't tried it yet, but this looks like 
what I was after.

Thanks again.

ck





More information about the K12OSN mailing list