Re: [PHP] Individual bulk e-mails - performance question (was "skinning a cat") :-)

2008-09-02 Thread Robert Cummings
On Wed, 2008-09-03 at 00:55 -0500, Micah Gersten wrote: > Robert Cummings wrote: > > On Mon, 2008-09-01 at 14:34 +0200, Merlin Morgenstern wrote: > > > >> Per Jessen schrieb: > >> > >>> Jochem Maas wrote: > >>> > >>> > > lockfile=/var/lock//file > > # clear out a lock older t

Re: [PHP] Individual bulk e-mails - performance question (was "skinning a cat") :-)

2008-09-02 Thread Micah Gersten
Robert Cummings wrote: > On Mon, 2008-09-01 at 14:34 +0200, Merlin Morgenstern wrote: > >> Per Jessen schrieb: >> >>> Jochem Maas wrote: >>> >>> > lockfile=/var/lock//file > # clear out a lock older than 60mins > find $lockfile -cmin +60 | xargs rm > test ! -f $lockf

Re: [PHP] Individual bulk e-mails - performance question (was "skinning a cat") :-)

2008-09-02 Thread Jochem Maas
Robert Cummings schreef: On Mon, 2008-09-01 at 14:34 +0200, Merlin Morgenstern wrote: Per Jessen schrieb: Jochem Maas wrote: lockfile=/var/lock//file # clear out a lock older than 60mins find $lockfile -cmin +60 | xargs rm test ! -f $lockfile && ( touch $lockfile rm -f $lockfile ) wouldn't

Re: [PHP] Individual bulk e-mails - performance question (was "skinning a cat") :-)

2008-09-01 Thread Robert Cummings
On Mon, 2008-09-01 at 14:34 +0200, Merlin Morgenstern wrote: > Per Jessen schrieb: > > Jochem Maas wrote: > > > >>> lockfile=/var/lock//file > >>> # clear out a lock older than 60mins > >>> find $lockfile -cmin +60 | xargs rm > >>> test ! -f $lockfile && ( > >>> touch $lockfile > >>> > >>> rm -f

Re: [PHP] Individual bulk e-mails - performance question (was "skinning a cat") :-)

2008-09-01 Thread Merlin Morgenstern
Per Jessen schrieb: Jochem Maas wrote: lockfile=/var/lock//file # clear out a lock older than 60mins find $lockfile -cmin +60 | xargs rm test ! -f $lockfile && ( touch $lockfile rm -f $lockfile ) wouldn't creating a dir be better here? (with regard to atomicity) I haven't thought it throug