Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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 snow settles gently...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-09-26 13:07 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (294 votes). Check out past polls.