public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* find command seems to lock files
@ 2019-08-19 12:49 Morten Kjærulff
  2019-08-19 14:06 ` Corinna Vinschen
  2019-08-26  1:57 ` Chris Wagner
  0 siblings, 2 replies; 13+ messages in thread
From: Morten Kjærulff @ 2019-08-19 12:49 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-08-25 20:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-19 12:49 find command seems to lock files Morten Kjærulff
2019-08-19 14:06 ` Corinna Vinschen
2019-08-19 14:13   ` Eliot Moss
2019-08-19 14:26     ` Corinna Vinschen
2019-08-19 14:41       ` Morten Kjærulff
2019-08-19 15:03         ` Eliot Moss
2019-08-19 17:05         ` Andrey Repin
2019-08-19 17:21           ` Andrey Repin
2019-08-19 17:41           ` Morten Kjærulff
2019-08-19 18:52             ` Eliot Moss
2019-08-19 19:43           ` Greywolf
2019-08-21 19:53           ` L A Walsh
2019-08-26  1:57 ` Chris Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).