Hello Pratik,

Between yours and Michael's solutions, I think yours is a closer fit (thanks
Michael!) to my needs. According to Cache::FastMmap, I only need to
initialise the file during the PerlRequire stage in httpd.conf. Then the
rest of the scripts can just use it. Is this correct?

----- Original Message ----- 
From: "Pratik" <[EMAIL PROTECTED]>
To: "Foo Ji-Haw" <[EMAIL PROTECTED]>
Cc: <modperl@perl.apache.org>
Sent: Sunday, October 09, 2005 10:21 PM
Subject: Re: how to share data among modperl processes


> Unless you are running the application in multiple server environment,
> http://search.cpan.org/~robm/Cache-FastMmap-1.09/ would be the best
> choice. But probably you should read up on AJAX as well. It looks like
> AJAX can help you accomplish what you are trying to do here.
>
> Thanks,
> Pratik
>
> On 10/7/05, Foo Ji-Haw <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I have a simple need where a process can take minutes to complete. But I
> > want to display some progress bar of sorts to the user.
> >
> > My idea is to have the handler call the local url which does the heavy
> > lifting. Something like this:
> > http://localhost/job/dojob => launches =>
> > http://localhost/job/actualjobworker
> >
> >
> > The local url will set some global hash to say that it is still working
on
> > the job. The original handler (/job/dojob) becomes a polling script to
check
> > on the global hash to see if the work is completed.
> >
> > I read from the wiki that it is possible to have a 'global' variable
where
> > all process can read/write to it. Can someone point me in the direction?
I
> > tried perl.apache.org but can't find anything there. A url should do the
> > trick.
> >
> > Thanks.
>
>
> --
> http://www.rails.info - Coming Soon !

Reply via email to