Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2008 13:52:46 +0200
From:      Pieter de Goeje <pdegoeje@service2media.com>
To:        freebsd-hackers@freebsd.org
Cc:        Igor Pokrovsky <ip@doom.ctinet.ru>
Subject:   Re: lock test from sh script
Message-ID:  <200810171352.46688.pdegoeje@service2media.com>
In-Reply-To: <20081017094820.GA2013@doom.ctinet.ru>
References:  <20081017094820.GA2013@doom.ctinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 17 October 2008, Igor Pokrovsky wrote:
> Hi all!
>
> 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)
>
> Thanks,
> -ip

Perhaps you mean lockf(3) ?

-- 
Pieter de Goeje




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810171352.46688.pdegoeje>