Revisiting a question that I asked in March last year about how to auto-empty a trash bin.
This has worked very well until today, when on one of my drives it also deleted the trash bin as well, so my follow-on script to give me the size of my trash bin failed as there wasn’t a trash bin to evaluate! Here is the script lines - --8<---------------cut here---------------start------------->8--- find /media/boudiccas/back2/.Trash-1000 -type f -mtime +"$days" -delete; find /media/boudiccas/back2/.Trash-1000 -depth -type d -exec rmdir --ignore-fail-on-non-empty {} +; --8<---------------cut here---------------end--------------->8--- and this is the evaulation script line - --8<---------------cut here---------------start------------->8--- echo 'Back2' - $(du -sh /media/boudiccas/back2/.Trash-1000 | cut -f1) --8<---------------cut here---------------end--------------->8--- How can I get it such that it empties the trash bin but does not delete the bin itself please? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.91.1
signature.asc
Description: PGP signature