Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Installing a program on a remote server through a web browser.

by unlinker (Monk)
on Jan 03, 2011 at 16:48 UTC ( #880219=note: print w/ replies, xml ) Need Help??


in reply to Installing a program on a remote server through a web browser.

If the install script is just one of the many things that your CGI program does, you could try forking your CGI process. A nice description (with code) of how this can be achieved is by Randall Schwartz in one of his Perl columns and is archived here.

However if you are planning to run several installs, a good option would be to hive off your install action to a message queue where a worker script could take over the job of running your install script. There are several message queues that work with Perl. See TheSchwartz, Gearman and Beanstalk for message queues that play well with Perl. You can then implement the Cache::Cache trick in Randall's script to track the worker's (install) progress

Hope this helps


Comment on Re: Installing a program on a remote server through a web browser.
Re^2: Installing a program on a remote server through a web browser.
by khangol (Novice) on Jan 03, 2011 at 17:18 UTC
    this CGI program does a few things, but the install is really the only intensive part. The suggestions you gave are beyond my Perl capabilities at this time, but thanks for your input!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://880219]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2014-07-10 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (205 votes), past polls