Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2016-10-26 02:00 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.