Your message dated Fri, 15 Apr 2022 14:05:54 +0200
with message-id <[email protected]>
and subject line Re: Bug#558801: find: option to find files that are currently 
open
has caused the Debian Bug report #558801,
regarding find: option to find files that are currently open
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
558801: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558801
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: findutils
Version: 4.4.2-1
Severity: wishlist


Especially for things like temporary directory cleanup, it'd be handy if
"find" had an option to seek files that are currently open. I can run the
results of "find" through "fuser" but that's a bit hairy. Something like
this would be nice:

  find /var/tmp/spool -type f -not -open -print0 | xargs -0 -n 1000 rm -f

Thanks,
   Tyler


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages findutils depends on:
ii  libc6                         2.9-25     GNU C Library: Shared libraries

findutils recommends no packages.

Versions of packages findutils suggests:
ii  mlocate                       0.21.1-2   quickly find files on the filesyst

-- no debconf information



--- End Message ---
--- Begin Message ---
On 2009-11-30 Tyler MacDonald <[email protected]> wrote:
> Package: findutils
> Version: 4.4.2-1
> Severity: wishlist

> Especially for things like temporary directory cleanup, it'd be handy if
> "find" had an option to seek files that are currently open. I can run the
> results of "find" through "fuser" but that's a bit hairy. Something like
> this would be nice:

>   find /var/tmp/spool -type f -not -open -print0 | xargs -0 -n 1000 rm -f
[...]

Hello,

I do not think this (show only non-open files) can be done properly at
all. Whether a file is open or not can and will change quickly, like in
the time between find walking the tree and printing the output or
executing the command. OTOH if one is interested in (long-term) open
files, there is adedicated command for that, lsof.

cu Andreas

--- End Message ---

Reply via email to