delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/19/08:34:54

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT gmail DOT 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 AT cygwin DOT com
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019