[Gllug] Re: trash management

Nix nix at esperi.org.uk
Mon Jan 30 20:05:57 UTC 2006


On Mon, 30 Jan 2006, Tethys said:
> 
> "Dan Stevens (IAmAI)" writes:
> 
>>Also, eventually I would like a daemon that will manage the permanent
>>removal of files in trash.
> 
> Well you *could* reinvent the wheel. Or you could just have a cron job
> that does it for you:
> 
> 	find "${TRASH:-$HOME/.trash}" -mindepth 1 -mtime +5 -print0 | xargs -0 /bin/rm -rf

That's `xargs -0r', not `xargs -0'.

-- 
`I won't make a secret of the fact that your statement/question
 sent a wave of shock and horror through us.' --- David Anderson
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list