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

I am trying to write a CGI script which will execute remote programs on unix box and from Apache webserver running on local Window NT machine. I was wondering if there is any advise on how I can carry out this task using Net:SSH:perl module. thank you, -prabjot
  • Comment on how to run remote programs on unix machine using apache running on Windows NT and perl module Net:SSH:perl

Replies are listed 'Best First'.
Re: how to use Net::SSH
by cLive ;-) (Prior) on Aug 27, 2001 at 03:53 UTC
      Not that I would discourage a link to documentation, but in this case the OP is actually talking about Net::SSH::Perl, whose documentation can be found here. :)
Re: how to run remote programs on unix machine using apache running on Windows NT and perl module Net:SSH:perl
by John M. Dlugosz (Monsignor) on Aug 27, 2001 at 03:53 UTC
    I think in order to get any meaningful replies, you need to ask a more specific question. What part of the Net::SSH documentation needs clarification, or what specific problem are you having using it? Or are you looking for examples?

    —John

Re: how to run remote programs on unix machine using apache running on Windows NT and perl module Net:SSH:perl
by princepawn (Parson) on Aug 27, 2001 at 05:00 UTC
    If the remote machine has a webserver, then you can write a handler to call whatever shell command you want to run there.

    Then just execute a GET or POST to actually have the remote command run.

      Be wary of that -- that's a BIG gaping security hole.
        well, my goal is to make this two tier system in which I would like to be able to invoke the executables on Solaris box from apache web server running on Windows NT machine.