Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Run Perl script on remote server

by necroshine (Acolyte)
on Feb 14, 2013 at 16:09 UTC ( #1018751=note: print w/replies, xml ) Need Help??


in reply to Run Perl script on remote server

I think you can use 'gearman' to spawn a job from PHP and receive a serialized result from PHP. After this you can use PHP::Serialization(CPAN) to deserialize or JSON to bring the results with Perl(JSON probably is more simple). Gearman site:

Off course you will need to install Gearman in A and B servers. If you canīt do this, you can use simple sockets to get results from PHP and finally process with Perl anyway.

Necroshine

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018751]
help
Chatterbox?
[Corion]: I find the process quite similar to (in Prolog) passing around an accumulator variable in recursive predicates
[1nickt]: Good morning, brainy monks!
[marto]: Hi 1nickt, I know it's early days, but how is the new job?
[Corion]: Hi 1nickt!
[Corion]: Ohai marto!
[marto]: hey Corion

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-12-11 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (289 votes). Check out past polls.

    Notices?