From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38402 invoked by alias); 19 Aug 2019 12:34:03 -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 38387 invoked by uid 89); 19 Aug 2019 12:34:02 -0000 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 Received: from mail-qk1-f178.google.com (HELO mail-qk1-f178.google.com) (209.85.222.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Aug 2019 12:33:59 +0000 Received: by mail-qk1-f178.google.com with SMTP id s14so1210973qkm.4 for ; Mon, 19 Aug 2019 05:33:59 -0700 (PDT) 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?= Date: Mon, 19 Aug 2019 12:49:00 -0000 Message-ID: Subject: find command seems to lock files To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00275.txt.bz2 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