Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

how to run remote programs on unix machine using apache running on Windows NT and perl module Net:SSH:perl

by prabjot (Initiate)
on Aug 27, 2001 at 02:59 UTC ( [id://108005]=perlquestion: print w/replies, xml ) Need Help??

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 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.
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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://108005]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-25 21:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found