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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: 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) --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--