http://qs321.pair.com?node_id=60430


in reply to Re: Deleting Files
in thread Deleting Files

What it actually is, is that the 450,000+ files are fax images, it used to be cleaned once a week when it ran on OS/2. When they converted the system to NT, they failed to implement a purge.
We now need to rectify that.

BatGnat

BALLOT: A multiple choice exam, in which all of the answers above are incorrect!

Replies are listed 'Best First'.
Re: Re: Re: Deleting Files
by a (Friar) on Feb 23, 2001 at 11:20 UTC
    Get an NT find and:
    find /image_dir -c +7d -exec rm {} \;

    a

      you can use unix command find like this
      find . -mtime +84 -exec rm -f {} \;
      ashok
        -mtime or -ctime (that's what I meant ;-), there's was some discussion about how NT handles/uses mtime/atime/ctime and, of course, you'd probably want "-exec del {} \;" unless an 'rm' came w/ the NT 'find' package (cygnus, MKutil, perl -e 'unlink shift', ????).

        a