delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/19/10:04:05

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=PkglIN6L1UjFCuoJBwT3Da0oKCXx38FNK8LSaLjwsVzKLSvDAiA+8
yakPe6F8LfO7DnGvkrmT3pajNrrOrdPDuC3JYpl1FXcZNQqiCiY2LQIJ+mGM0Q2W
Sl8MfM0Hs3POuH/4GMCh3bKIuMDBM3hrKWVl3fWo1WdCXH6R6Wg67U=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=KH3R0xiGuYPjGdytBjjj6w+Yq/Q=; b=dNVAY6AChEEjQ3/Pl4miR2tYs8fo
/JWLQN5TiguoMQ1P3vQyQBvhjXUW8gdUz2dEl/Bunofrku6eC4x++zotSrn/6eBC
1PaAITJyKeZAW8MXKcQhZPc0qlIEuamyg1DGUzaxsvvYCKjLUIy+HVf6ZtTjFVNb
9qKY8LiQx6s3FHc=
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=-101.7 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*F:D*cygwin.com
X-HELO: mout.kundenserver.de
Date: Mon, 19 Aug 2019 16:03:08 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: find command seems to lock files
Message-ID: <20190819140308.GN11632@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CA+7cx1rwShfSJYJZdvSF-8ERaAQqcYxtQquKKB8xwoBxqhLVog AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CA+7cx1rwShfSJYJZdvSF-8ERaAQqcYxtQquKKB8xwoBxqhLVog@mail.gmail.com>
User-Agent: Mutt/1.11.3 (2019-02-01)

--YGrZF/eHoPhUd1nD
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 19 14:33, Morten Kj=C3=A6rulff wrote:
> Hi,
>=20
> I have an application which constantly:
> creates a file
> do some processing
> deletes the file
>=20
> One way to monitor if the application has crashed, is to check the age of
> the file, so I made a script that:
>=20
> find //$server/d$/dir/subdir*/subsubdir -name 'thefile' -printf '%A+\n'
>=20
> subdir* will be subdir1 subdir2 ...
> under subsubdir there will be dirA, dirB, ... and under those, thefile may
> exist.
>=20
> Problem is that it seems this command locks thefile, as the application
> sometimes can't delete it.
>=20
> Could this be true?

Cygwin does not actually lock anything except in very rare
circumstances.  Your problem is more likely triggered by a realtime
virus scanner.


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--YGrZF/eHoPhUd1nD
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1arBwACgkQ9TYGna5E
T6DsKw//Urb2iWyTcaU+iyoWp5GlciwdsYZcsMji35DARkFLFLrIxndMOw/m8QXx
tVEPlVVxlpc3IiZpItiSF2jWIlKXPV5qVq2hGtvKgUcpJ2bGkWbXSDeZw4sgii0E
40MFxDiJAZFm2dXVNSFdOd+zebRCaZZp0v3mQ9k+SZrk5xvCvzjs/wY+PnZoj6aP
P0A/0l9OyHmpFttDrbc+L2I5oFX7UpnfmaCJiKSlZWFJz9YPc1Skz+VHoxIuYBki
ISaiRamkCgypo9/rkRVhtoxNuFaa67JLDUWvW/u014680qKd5t2/i38b5J9Cb+qT
r6EHq5ktanCM92HVdM/XsfJZT9fzCC5L7AJ9D8m4IU1PLY+0yQOZ3pbivMKFOQ+i
jAMNBZKQBZyw7xrah+gmA1zKHEHgK/ZX7UH0MJ3Zc0ItEcX0cjGmUElMzNyyWg3h
Gq8Xr/O/ImMWiCzrtvkFWpjycIdBR1L2VBusroBZL10jew0AEIIuIc6OSzFJYJpl
9k94dKu3wv3RgAMxD2jAbaTFNxqbXZ92pF3bj5gCqeW70Pl7Aofe13Xu+hFI3dvB
12eNeE/L2Sdhp6GWG5ygUPENbhUstWUSUHVRyDg4QdrQiddGQm9lOgXC+is106zW
G42W7/ia8Rg5pv0hbz4pMkuw5OKycsyG4cD7QygxYzbUtVnCMx0=
=/qPc
-----END PGP SIGNATURE-----

--YGrZF/eHoPhUd1nD--

- Raw text -


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