bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request: Can bash provide some mechanism for locking/unlocki


From: Eric Blake
Subject: Re: Feature request: Can bash provide some mechanism for locking/unlocking?
Date: Thu, 15 Apr 2010 10:04:05 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Thunderbird/3.0.4

On 04/15/2010 08:28 AM, Clark J. Wang wrote:
> In C code I can use lockf(), flock(), semaphore and mutex for locking /
> unlocking. Can bash provide some similar mechanisms?

man 1 flock

If necessary, you may need to install:
ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]