Re: Database viewpoint of subject - Sending e-mails from database table with Cronjob - Mailing list pgsql-general

From Bill Moran
Subject Re: Database viewpoint of subject - Sending e-mails from database table with Cronjob
Date
Msg-id 20100421114912.c9cbad53.wmoran@potentialtech.com
Whole thread Raw
In response to Re: Database viewpoint of subject - Sending e-mails from database table with Cronjob  (A B <gentosaker@gmail.com>)
Responses Re: Database viewpoint of subject - Sending e-mails from database table with Cronjob
List pgsql-general
In response to A B <gentosaker@gmail.com>:

> > [quote]
> > The other way is to let the cron job spawn new processes (up to a
> > limited number of child proceses) as long as there are mails to send.
> > These child processes runs as long as there are mails to send, then
> > they die. The cron job will then mostly do process controll/start new
> > processes.
> > [/quote]
> >
> > How can I do this. I'am thinking to use a PHP Script?
>
> This is getting a little of topic, but I guess something like
> exec('php some_script.php') will work?

There's a php/pgsql list available on this listserve that will get
you a lot more help in this area.

However, I would suggest PHP's pcntl_fork() and friends for creating
multiple processes.  Of course, that's only needed if you want to
run them in parallel, which was unclear to me.

--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/

pgsql-general by date:

Previous
From: A B
Date:
Subject: Re: Database viewpoint of subject - Sending e-mails from database table with Cronjob
Next
From: Andre Lopes
Date:
Subject: Re: Database viewpoint of subject - Sending e-mails from database table with Cronjob