Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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

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 scrutinizing the Monastery: (9)
As of 2015-10-07 09:18 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (175 votes), past polls