[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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





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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]