X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; q=dns; s=default; b=uQdp3fr6h5XOd7oq5Hu3bGExJ07fF
	wypoTBrISootp20Y51PXN6lnlzv0mrfTNvr0SmTwgoRp4yeeQ0I6G3yrKxKXeNMm
	H0BRrV+cwGaKWkJ9v5jJuo4iaSyXSo2tLMJjhtguSDSPoFCDhVNGJXMnJLoSHTdP
	AYSZK8GweYi3WQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; s=default; bh=qEVUmZ+9tss5wVa8y3q5ZpmtbXo=; b=OBS
	ZYMyT6TtTae8y96nnfcyuEouE5ekfBw1iAkQfVOww0WdNjN/yMEGTeTc8k4pMAIe
	oLNvnZqXMkZU5TsMEP6C3ATcCGQtQEvlfx8YXlvHseNvQyjaogXBgem6rfuLd8hC
	CLXgezhGGPPdAIz7BPaiBA4RcFOmWX5wqvgrrkNk=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=constantly, deletes, HX-HELO:sk:mail-qk, monitor
X-HELO: mail-qk1-f178.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=mime-version:from:date:message-id:subject:to;        bh=FMkypkVnDfCZxaBHRWIIrTeTcfbUyhkPf43koJZbH4o=;        b=QICBMN92Q07jMUIYSPjQAHUwncAVDFZksomvqkmFp1TiQx46347fnS8B6S55WDVHKj         hFBGpAJLukFV1rMNB9+LY5LLlMMKz+iBJ0rihjOVLgTQrOmVQRB0FEVUJNTiIThQKdyU         YWtmRckvjthrXS6vWxWUpUExmITDp3vYPOlv7/IqZOHnZqDKoqRakDw5Eomq1MBMDiEs         A+ZQx/Fr8Y3MPlT0EokbvrKIQN8R7LY6Haa4vFfC4+xBSgT1Uq3HFeP+6Yiee5WKbUjF         3oBEkKk+nLWFODHahhuS7LZlfDDPjimNG3H/U2khZF6u1Dn46/dnR1M4BFpzGxq8SMmq         M9LQ==
MIME-Version: 1.0
From: =?UTF-8?Q?Morten_Kj=C3=A6rulff?= <mortenkjarulff@gmail.com>
Date: Mon, 19 Aug 2019 14:33:46 +0200
Message-ID: <CA+7cx1rwShfSJYJZdvSF-8ERaAQqcYxtQquKKB8xwoBxqhLVog@mail.gmail.com>
Subject: find command seems to lock files
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

Hi,

I have an application which constantly:
creates a file
do some processing
deletes the file

One way to monitor if the application has crashed, is to check the age of
the file, so I made a script that:

find //$server/d$/dir/subdir*/subsubdir -name 'thefile' -printf '%A+\n'

subdir* will be subdir1 subdir2 ...
under subsubdir there will be dirA, dirB, ... and under those, thefile may
exist.

Problem is that it seems this command locks thefile, as the application
sometimes can't delete it.

Could this be true?

/Morten

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

