Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I want to spawn a win32 application on a remote machine. The catch is that the app is not a console app, so SSH is not adequate. I want the app to run on the remote machines local display (and display the GUI there). An added bonus would be for me to be able to wait for the app to complete. Thanks!
  • Comment on Spawn a remote Win32 graphical application

Replies are listed 'Best First'.
Re: Spawn a remote Win32 graphical application
by BrowserUk (Patriarch) on May 28, 2003 at 02:15 UTC

    The catch is that the app is not a console app, so SSH is not adequate.

    If you have the privileges to get to the remote command line via SSH, then issuing the command for the gui app. from that command line will launch the app.

    To have the command line not return control until the gui app finishes use start /wait. Eg.

    start /wait notepad

    The app will launch, and the command prompt will not return until the app is closed.

    This will probably work via something like Net::SSH::W32Perl, but I have no experience of that module.

Re: Spawn a remote Win32 graphical application
by sauoq (Abbot) on May 28, 2003 at 01:21 UTC

    That's easy. Pick up a phone. Call the remote user (that's the 'U' in GUI, you know.) Have him run the program and call you back when it completes. Sit back and twiddle your thumbs in the meantime.

    -sauoq
    "My two cents aren't worth a dime.";
    
Re: Spawn a remote Win32 graphical application
by WhiteBird (Hermit) on May 28, 2003 at 00:41 UTC
    So, what have you put together thus far on this project?