Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: monitor rm command ?

by vitoco (Friar)
on Sep 02, 2009 at 13:23 UTC ( #792915=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://792915]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-04-20 23:01 GMT
Find Nodes?
    Voting Booth?