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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=nItypg4XSPSe249J 1gBy9G0gFy33erEHcaAx39cORyaDRMxxuw5tEus/eEE38LAOPGaBZeVPkdgXEHz6 nXXE862lhMOFMKAA2GsOaXyPpa7s2ooMAoXxw9CWIA3Aa+X35FzhNehiI2vt2o/E l3xNE+//XH6upfyHybeLArBjP/g= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=GkV3iqODcHjH6rg0/8QSi2 kIFy4=; b=ppnmC8Pi/XuZXSEUdZV8939OXpcZ0R+1G3y/VuWRflseVEPWyntI0C poR2cSUpE25AKCwS1iNkzD2dXnuqPMHGskvE5f8t6yBfx5UG9v2t0wSJVSuQkzu4 S629vH5v2bckENLGgAbbldNIri3LmTsB3XmvG7dxBVtwd/CUquXLw= 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=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=day!, day, HContent-Transfer-Encoding:8bit X-HELO: eddie.starwolf.com Subject: Re: find command seems to lock files To: cygwin AT cygwin DOT com References: <20190819140308 DOT GN11632 AT calimero DOT vinschen DOT de> <609c28ca-07da-f150-139b-267448ede826 AT cs DOT umass DOT edu> <20190819141321 DOT GO11632 AT calimero DOT vinschen DOT de> <1621839017 DOT 20190819194256 AT yandex DOT ru> From: Greywolf Message-ID: <74bec425-38ca-e9db-38c9-8dd82df20844@starwolf.com> Date: Mon, 19 Aug 2019 11:52:48 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1621839017.20190819194256@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Greets, Andrey! > To begin with, the results of your `find` calls will be at least 5 seconds > stale over CIFS share with default settings. > Said that, you could safely write something like > > find /xx -type а -iname "zzz" -mtime +10s -execdir 'msg * "Achtung programme crash boom!"' Thank you for the kaffe spit-take. You just made my day! --*greywolf; -- 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