Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Monitoring a long process through a web interface CGI/Perl

by edatawiz (Novice)
on Apr 23, 2009 at 21:22 UTC ( #759672=perlquestion: print w/replies, xml ) Need Help??

edatawiz has asked for the wisdom of the Perl Monks concerning the following question:

I have been following some of threads for the above situation:
I have command line interface to extract data say something which googles set of keywords, extracts url and find page rank.
Now, if I would like to monitor such a progress through a web interface what would be the best way to do it ?

One suggestion was to run the extraction process in background and monitor it using a module (using fork)
I found few sample codes too ! but I have difficulty in following the code. Also, this needs to be run on Windows or Linux. Any right redirection would be really appreciated.
Thanks
Vishy
  • Comment on Monitoring a long process through a web interface CGI/Perl

Replies are listed 'Best First'.
Re: Monitoring a long process through a web interface CGI/Perl
by almut (Canon) on Apr 23, 2009 at 23:15 UTC
    I found few sample codes too ! but I have difficulty in following the code.

    If you've been following some threads here, you probably have seen the classical Watching long-running processes through CGI being mentioned.  You could try to implement something along these lines, and in case you get stuck, come back here with the code you've tried and what exactly didn't work.

    That would be for Unix systems. I can't comment on how to achieve the same on Windows, because I've never run a webserver on Windows for anything serious. But I suspect the system differences with respect to fork/exec and how the webserver handles its pipes to the CGI program might be large enough to require a slightly different approach... Hopefully, someone else knows more.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://759672]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2022-08-11 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?