Date: Fri, 17 Oct 2008 13:56:54 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Igor Pokrovsky <ip@doom.ctinet.ru> Cc: hackers@freebsd.org Subject: Re: lock test from sh script Message-ID: <86abd35ta1.fsf@ds4.des.no> In-Reply-To: <20081017094820.GA2013@doom.ctinet.ru> (Igor Pokrovsky's message of "Fri, 17 Oct 2008 13:48:20 %2B0400") References: <20081017094820.GA2013@doom.ctinet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Igor Pokrovsky <ip@doom.ctinet.ru> writes: > I need to check if file is locked or not (with flock) from a shell > script. I remember there was something but cannot recall what exactly. > And if possible I do not want to write my own test utility even it > is several lines in length) lockf -t0 <file> true DES -- Dag-Erling Smørgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86abd35ta1.fsf>
