Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Run Perl script on remote server

by blue_cowdawg (Prior)
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

Comment on Re: Run Perl script on remote server
Download Code

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 making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2014-07-22 15:50 GMT
Find Nodes?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:

    Results (117 votes), past polls