in reply to Re^2: monitor rm command ?
in thread monitor rm command ?

Or something a little more cross-platform like SGI::FAM, though it might need a little TLC to make properly.