find command seems to lock files
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Aug 19 14:06:00 GMT 2019
On Aug 19 14:33, Morten Kjærulff wrote:
> 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?
Cygwin does not actually lock anything except in very rare
circumstances. Your problem is more likely triggered by a realtime
virus scanner.
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190819/50b2ae0b/attachment.sig>
More information about the Cygwin
mailing list