http://www.perlmonks.org?node_id=792915


in reply to monitor rm command ?

Guessing that you don't know which files exactly are, because you are using wildcards or -rf options, you can take a snapshot of the directory tree before the rm, starting from the working directory, and compare it with another one taken when deletion is complete.

You can use standard commands from the shell like find and sort, or, of course, use perl.

Replies are listed 'Best First'.
Re^2: monitor rm command ?
by cdarke (Prior) on Sep 02, 2009 at 15:09 UTC
      Or something a little more cross-platform like SGI::FAM, though it might need a little TLC to make properly.