Executing a script on a different server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Morrisd
    New Member
    • Dec 2006
    • 2

    Executing a script on a different server

    I am new to perl. So hpefully my question is simple. I am trying to run a perl script on one windows server and have it execute another script on a different server. Both servers windows 2003. These scripts will run during off hours.

    Thanks
    Duke
  • GunnarH
    New Member
    • Nov 2006
    • 83

    #2
    Originally posted by Morrisd
    hpefully my question is simple.
    You did not ask any question...
    Originally posted by Morrisd
    I am trying to run a perl script on one windows server and have it execute another script on a different server.
    If the other script can be executed from the web, you can do it as an HTTP request, either as a simple redirect or by help of the LWP::UserAgent module.

    Comment

    • geek491
      New Member
      • Oct 2006
      • 21

      #3
      Originally posted by Morrisd
      I am new to perl. So hpefully my question is simple. I am trying to run a perl script on one windows server and have it execute another script on a different server. Both servers windows 2003. These scripts will run during off hours.

      Thanks
      Duke
      To do what u have asked for u need something on the other server listening for requests so that when the first script starts and sends a message requesting the other server to start a script over there it must read the request.

      2 options would be..
      1. HTTP server listening to a HTTP request
      2. A Socket dedicated to listen to the requests.


      HTTP would follow the approach of CGI where in u would send a URL request and the HTTP request would execute the cgi program on that machine.

      Socket u can customize a client server program that listens to the server to send command which will invoke the script

      geek491

      Comment

      • docsnyder
        New Member
        • Dec 2006
        • 88

        #4
        Have a look at the Perl module "Expect".

        Greetz, Doc

        Comment

        • Morrisd
          New Member
          • Dec 2006
          • 2

          #5
          Thank all of you. The first note pointed out that I didn't ask a question. You are correct. This goes along with my being new to perl. I am trying the expect module. Any other tips will be appreciated.

          Thanks
          Duke

          Comment

          Working...