Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Run Perl script on remote server

by blue_cowdawg (Monsignor)
on Feb 14, 2013 at 15:51 UTC ( #1018748=note: print w/replies, xml ) Need Help??

in reply to Run Perl script on remote server

      • Scripts reside in server A (Has Perl modules installed)
      • Webserver is B (no Perl and policy said we can't install)

What sort of environment are you running in that won't allow Perl to be installed (or doesn't already have Perl installed?)

Once solution to this would be to convert your scripts on Server A into a web service and communicate back to the PHP scripts running on Server B via JSON encoded messages or some such.

Take a look at the path_info() method of the module CGI for some ideas on how to implement this. It is a quick and dirty way of implementing something that sorta looks like a RESTFull service.

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018748]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-11-19 08:41 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (278 votes). Check out past polls.