Re: How to have a sub process or a fork ?

2000-05-06 Thread Ričardas Čepas

On Sat May  6 13:34:35 2000 +0200 Thierry-Michel Barral wrote:

> buongiorno a tutti, [sorry, but I'm currently listening Le Nozze di Figaro !]

> I have a little question :
>
> ( I'm using mod_perl 1.23, scripts under Apache::Registry)
>
> I have a script updating a db from parm given by the client, and building a HTML 
>page.
>
> The process of update is fast enough, but the building is a litlle too long, too 
>many updates arriving.
>
> I cannot stopping the frequency of updates (human !), so my question ;
>
> Is it possible to have another process / script, allways running, which my script 
>can talk ?
> (I do not want to use the crontab)

Sure - run plain perl script as daemon listening on UNIX or INET socket.  But 
this isn't mod_perl
related at all.

>
> Is a fork a good idea ?

No if you do it each hit.


-- 
  Ričardas Čepas
~~
~

 PGP signature


How to have a sub process or a fork ?

2000-05-06 Thread Thierry-Michel Barral



buongiorno a tutti, [sorry, but I'm currently 
listening Le Nozze di Figaro !]
 
I have a little question :
 
( I'm using mod_perl 1.23, scripts under 
Apache::Registry)
 
I have a script updating a db from parm given by 
the client, and building a HTML page.
 
The process of update is fast enough, but the 
building is a litlle too long, too many updates arriving.
 
I cannot stopping the frequency of updates (human 
!), so my question ;
 
Is it possible to have another process / script, 
allways running, which my script can talk ?
(I do not want to use the crontab)
 
Is a fork a good idea ?
 
Is a handler necessary here ? (frighten me, I'm 
just a beginner here)
 
thanks,
 
kktos
 
ps: thanks for your 
answers of my previous questions q:-D