Re: WinVNC - "-connect" command over telnet

From: Ingecom - SERRE Jean-Christophe ()
Date: Wed Aug 16 2000 - 14:25:46 EDT

  • Next message: Ingecom - SERRE Jean-Christophe: "Re: VNC review in Network Computing article"

    "Hannes Har" <> wrote:
    >
    [ 8< About unability to run a Win32 app from a telnetd session ]
    >
    > Or is there any other way to start remotly "winvnc -connect server"
    > without being in the same room where this PC is?

    I'd see at least two other ways:

    ~From NT to NT: you can remotely run a command using
      AT \\remoteComputerName hour "command"
    so you could have on the remote a dedicated batch doing that, possibly
    accepting command-line arguments for the -connect servername. Catches to
    that way is that you need NetBios ports opened between the two comps,
    and also you need to first do a "NET TIME \\REMOTE" so as to be sure to
    schedule the command a few minutes in its *own* future.

    ~More generally, you can use a dedicated web script if you have a
    webserver on the remote, or install one: you then just need it to
    support a scripting language able to execute programs or batches, and
    set up a little page+form for providing it your arguments.

    I'm using this scheme so as to be able to remotely start WinVNC on my
    office comp from home. I run the free OmniHTTPd which supports CGI-WIN
    scripts: they can be as simple as .BAT files doing a CGI-like interface
    through %var:

    secretName.bat
    ......................................................................
    @echo off
    echo HTTP/1.0 200 OK>> %3
    echo Content-type: text/plain>> %3

    echo.>> %3
    echo Starting...>> %3
    START "C:\Program Files\Orl\Vnc\WinVNC.exe" -kill -run
    echo Started >> %3
    ......................................................................

    >From home, I just enter in my browser:
      

    And this batch is executed, doing the trick. Of course, using OmniHTTPd,
    there's no user:password security on this file, only the knowledge of
    the complete URL is the "secret", but it's enough for my purpose.

    A similar thing could do it for you, using a batch or a dedicated CGI
    .exe app (even VB would do).

    -- 
    JCS - Jean-Christophe SERRE - INGECOM France - +33 (0)1.48.34.12.34
     
    Microsoft: the 51st State of America -- 52nd coming soon!
    ---------------------------------------------------------------------
    To unsubscribe, send a message with the line: unsubscribe vnc-list
    to 
    See also: 
    ---------------------------------------------------------------------
    

    ----------------------------------------- TridiaVNC - http://www.tridiavnc.com/



    This archive was generated by : Wed Aug 16 2000 - 16:10:02 EDT