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

Re: howto get popup for connection speed



hacker (of golf) wrote:

> I'm trying to create a popup to show the connection speed.
> I'm trying this:
> 
> root :~# kdialog --display localhost:0 --msgbox "Connection Speed
> `tail -n1 /var/log/ppp-connect-errors | awk '{ print $6 }'` bps"
> kdialog: cannot connect to X server localhost:0
> 
> but, as you can see, it won't connect to the xserver.
> 
> How can I get this to work?

Prepend:
XAUTHORITY=${USER_WITH_X}/.Xauthority
export XAUTHORITY

Now you can call your command

HS



Reply to: