Re: [PHP] Fork PHP script X at a time.

2004-09-21 Thread John Wards
On Tue, 2004-09-21 at 13:58, John Wards wrote: > Not sure if anyone is interested in what I have come up with, its busy > running just now but it seems to be performing ok. Again adding to this thread for future reference. Its just compleated all 90 threads in 1 hour 50 minutes and that was runni

Re: [PHP] Fork PHP script X at a time.

2004-09-21 Thread John Wards
Not sure if anyone is interested in what I have come up with, its busy running just now but it seems to be performing ok. $do =0; $ok =0; $count=0; while($do!=1){ if($ok==0){ $sql = "SELECT * FROM locations WHERE parent = '0' AND doing=0 and done !=1 ORDER BY num DESC LIM

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Marek Kilimajer
John Wards wrote: On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote: play around with popen() and stream_select() Oooh that looks handy. More night time reading I think! Any further ideas to save a man with a cold from using his brain would be great! Cheers John Wanted to do something interesting

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 16:36:51 +0100, John Wards <[EMAIL PROTECTED]> wrote: > Right I have a script that I need to run around 90 times thru a cron job > but passing a different i.d. to it each time. > > I have experimented with running all 90 at once and its a no go as it > just makes the server run

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread raditha dissanayake
John Wards wrote: Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. not suprised. I have experimented with running all

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread John Wards
On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote: > play around with popen() and stream_select() Oooh that looks handy. More night time reading I think! Any further ideas to save a man with a cold from using his brain would be great! Cheers John -- PHP General Mailing List (http://www.php.n

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Marek Kilimajer
play around with popen() and stream_select() John Wards wrote: Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. I have e

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread John Wards
On Mon, 2004-09-20 at 16:45, Wouter van Vliet wrote: > > > > What I would like to do is fork off say 5-10 at a time and when one is > > done start another one in its place, as they all take different length > > of times to compleate. > > > > Any clues at where to start? Here is my fork all 90+ co

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Wouter van Vliet
> Hi, I have a bit of a cold today so I probably would have figured this > out for myself eventually but hey ;-) > > Right I have a script that I need to run around 90 times thru a cron job > but passing a different i.d. to it each time. > > I have experimented with running all 90 at once and its