From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23670 invoked by alias); 19 Aug 2019 14:03:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23602 invoked by uid 89); 19 Aug 2019 14:03:12 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Aug 2019 14:03:11 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N6KML-1iJh4v3Emv-016iEM for ; Mon, 19 Aug 2019 16:03:08 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 50817A8066E; Mon, 19 Aug 2019 16:03:08 +0200 (CEST) Date: Mon, 19 Aug 2019 14:06:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: find command seems to lock files Message-ID: <20190819140308.GN11632@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YGrZF/eHoPhUd1nD" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-08/txt/msg00278.txt.bz2 --YGrZF/eHoPhUd1nD Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 811 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" Content-length: 833 -----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--