Re: howto get popup for connection speed

From: Matias Rollan (cygar_at_safesource.com.ar)
Date: 07/21/05

  • Next message: Hendrik Sattler: "Re: howto get popup for connection speed"
    Date: Wed, 20 Jul 2005 20:39:19 -0300
    To: debian-user@lists.debian.org
    
    

    Hola !

    On Wed, Jul 20, 2005 at 06:44:16PM -0400, 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?
    >

    If you running the X server as the same user you are trying to execute
    "kdialog" you might want to try this:

    root:~# kdialog --msgbox "This is a test." --display `env |grep -i display |cut
    -d'=' -f 2`

    or better instead of doing that [env|grep|cut] just use:

    # kdialog --msgbox "this is a test" --display $DISPLAY

    which actually is what we want to get , the value for DISPLAY
    environment variable. :)

    [ instead of using "localhost:0" take a look at the DISPLAY environment
    variable ]

    If you are not running the X server as the user who wants to execute the

    kdialog and you want let others [any] user from [any] host [ not recommended ] :
     $ xhost +
     # export DISPLAY=:0.0 && kdialog...

    Other option would be ssh forwarding to your own box.
     $ ssh -Xf root@localhost 'kdialog --msgbox ......... '

    I hope it helps,

    -- 
      Matías Rollán
      <cygar@safesource.com.ar>
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Hendrik Sattler: "Re: howto get popup for connection speed"

    Relevant Pages

    • Re: Causing postback
      ... Microsoft Scripting MVP ... on click of a button there is some server side ... If the popup is displayed, ... > Could anyone pls tell me how it is possible to execute the server side ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: File Upload - Security Issues
      ... uploaded and the user could upload any or all of these in theory. ... There is no one product that can give you 100% security, ... > Code doesn't execute in local memory space unless remote user has rights ... > You don't have MS Office installed on the server. ...
      (microsoft.public.scripting.vbscript)
    • Re: System.Security.SecurityException was unhandled
      ... Is it a must that I need to register the COM server to the machine using ... CAS permissions on the client machine, and the COM issue is a new problem. ... assembly actually has the permission in question. ... When I execute the application I received and error message. ...
      (microsoft.public.dotnet.security)
    • 2nd Post - Trouble Getting VS.Net 2003 WalkThrough working
      ... the server. ... MSDE either from the Setup or from the SQL2KDeskSP3 execute. ... it does look like some of the sample databases have been ... >> and they directed me to install MSDE and they attached a ConfigSamples ...
      (microsoft.public.sqlserver.msde)
    • Re: How to launch a Windows application from a ASP.Net web applica
      ... It can execute Java, ActiveX, and JavaScript, and maybe a few other things. ... The only reason your program has been somewhat successful is because your client and server are on the same machine. ... programs I knew how to create a batch file program already. ... When using ClickOnce it creates/deploys the Windows application from ...
      (microsoft.public.dotnet.framework.aspnet)