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

Your example wouldn't show which files are deleted. For this, you would need something like

for @files { unlink and push @deleted,$_ }

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^3: monitor rm command ?
by jettero (Monsignor) on Sep 02, 2009 at 14:13 UTC
    Yours doesn't really show errors either...
    for(@files) { if( unlink ) { push @deleted, $_; } else { warn "$_ doesn't want to die: $!" } }

    -Paul

      Yours doesn't really show errors either...

      Correct, but that was not requested by the OP ;-)

      -- 
      Ronald Fischer <ynnor@mm.st>
        Sure it was...

        give me some direction

        -Paul