Re: Re: skinning a cat (was: Individual bulk e-mails - performance question)
| From: | Robert Cummings | Date: | Mon, 01 Sep 2008 18:31:41 +0000 |
| Subject: | Re: Re: skinning a cat (was: Individual bulk e-mails - performance question) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279234@lists.php.net to get a copy of this message | ||
On Mon, 2008-09-01 at 20:22 +0200, Per Jessen wrote:
> Robert Cummings wrote:
>
> >> I'm probably old fashioned, but to me all that stuff is way overkill.
> >> I also tend to think that synchronizing scripts is a job for the
> >> shell, not PHP.
> >>
> >> lockfile=/var/lock/<xxxx>/file
> >> # clear out a lock older than 60mins
> >> find $lockfile -cmin +60 | xargs rm
> >> test ! -f $lockfile && (
> >> touch $lockfile
> >> <run some php>
> >> rm -f $lockfile
> >> )
> >
> > Try running that on windows.
>
> Why? - we don't use Windows.
I get requests from time to time to do windows work. My scripts just
happen to work in windows or linux. I guess that's because I don't punt
to shell scripts what is easily implemented in PHP ;)
99% of what I do is linux based. But knowing what to do for the other 1%
is pure gold to my clients.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP