Re: crontab help

From: Date: Thu, 22 Feb 2001 14:37:29 +0000
Subject: Re: crontab help
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-41151@lists.php.net to get a copy of this message
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 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 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 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. > > > > > > > -- > > > > -------------------------------------------------------------------------- > ----- > > Joe Stump, PHP Hacker, > -o) > > http://www.miester.org http://www.care2.com > /\\ > > "It's not enough to succeed. Everyone else must fail" -- Larry Ellison > _\_V > > -------------------------------------------------------------------------- > ----- > > > > > > > -- ------------------------------------------------------------------------------- Joe Stump, PHP Hacker, joestump98@yahoo.com -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V -------------------------------------------------------------------------------

« previous php.general (#41151) next »