[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Q: applet flock fails with 'invalid number $filename'
From: Johannes Stezenbach <js () sig21 ! net>
Date: 2016-01-07 9:42:18
Message-ID: 20160107094218.GA7910 () sig21 ! net
[Download RAW message or body]
On Wed, Jan 06, 2016 at 11:37:33PM -0800, Isaac Dunham wrote:
>
> If you want to run it to lock a critical section of a script, use
> exec FD>> FILE
> flock FD
> ...
> flock -u FD
FWIW, I think canonical use is:
{
flock 9
...
} 9>$lockfile
Johannes
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic