Re: "flock" usage: how to wrap one lock around two commands?

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

 



On Thu, Aug 19, 2010 at 11:32:31AM -0700, Jack Bates wrote:
> The flock usage and manpage describe how it can be used to wrap one lock
> around the execution of one command - can it be used to wrap one lock
> around the execution of two commands?

 I think that

        (
              flock -s 200
              # ... commands executed under lock ...
        ) 200>/var/lock/mylockfile

 in the man page means more than one command.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux