Arnold,
In the minutes field on crontab, you can add as many values as you want
separated by a colon. Try somthing like this...
00,05,10,15,20,25 and so until 55 * * *
^
THIS IS A MINUTES FIELD WITH MANY VALUES
We use it here and it does the job fine. Try rea
Didn't you just ask this a few days ago?
In your while loop put a sleep(300) which will sleep for 300 seconds after
processing X amount of emails.
--Joe
On Fri, Feb 22, 2002 at 02:53:10PM +0800, Arnold Gamboa wrote:
> hi there.
>
> is there a way to tell crontab to do:
>
> "run script every 5
sleep is in seconds. so that would be 5 minutes.
On Thu, 22 Feb 2001, Arnold Gamboa wrote:
> hi,
>
> thanks again. questions:
>
> 1. sleep(300) would mean pause by 300 mins, right? That's why i thought you
> mean usleep(300) - 300 microseconds. please comment
> 2. what you mean is i will sen
1.) sleep() is in seconds - plain old seconds - so sleep(300) == 5 minutes.
2.) yes - send, sleep, send, ...
--Joe
On Thu, Feb 22, 2001 at 11:09:05PM +0800, Arnold Gamboa wrote:
> hi,
>
> thanks again. questions:
>
> 1. sleep(300) would mean pause by 300 mins, right? That's why i thought yo
> 1. sleep(300) would mean pause by 300 mins, right? That's
> why i thought you mean usleep(300) - 300 microseconds.
No, 300 seconds - 5 minutes.
Chris
hi,
thanks again. questions:
1. sleep(300) would mean pause by 300 mins, right? That's why i thought you
mean usleep(300) - 300 microseconds. please comment
2. what you mean is i will send 5000 emails, then pause and send again?
Thanks for your help.
> I send roughly 1M of these and put a sle
BTW when it sleeps PHP takes up no noticable resources. Also I'm running the
php binary to send out these messages (that way I can use screen and make sure
that my browser doesn't crash, os freeze, etc.)
--Joe
On Fri, Feb 22, 2002 at 03:36:33PM +0800, Arnold Gamboa wrote:
> thanks for the commen
I send roughly 1M of these and put a sleep() (not usleep - that's microseconds)
into the while loop - I've come up with a decent balance that sends out a good
number (like 5000) and then sleeps just long enough to get them out of qmail's
queue, then it sends another 5000 (and so on).
Usually take
ECTED]
www.phpbeginner.com
-Original Message-
From: Arnold Gamboa [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 4:37 PM
To: Joe Stump
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] crontab help
thanks for the comment
let's just say i have 100k emails to send... don't you think
put a sleep(300); at the end of your while() loop - I did this on my mass
mailer and it worked like a charm.
--Joe
On Fri, Feb 22, 2002 at 02:53:10PM +0800, Arnold Gamboa wrote:
> hi there.
>
> is there a way to tell crontab to do:
>
> "run script every 5 mins for 1 hour"..
>
> i have this m
thanks for the comment
let's just say i have 100k emails to send... don't you think that will drain
the system resources if i send it all at once even if you have usleep(300)
on each while?
your comment please.
> put a sleep(300); at the end of your while() loop - I did this on my mass
> mailer
hi there.
is there a way to tell crontab to do:
"run script every 5 mins for 1 hour"..
i have this mass email script that is so huge that i need it to chunk into
records and make sure that it will run every 5 mins for 1 hour.
Thanks for any help.
12 matches
Mail list logo