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
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
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
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
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
5 matches
Mail list logo