Quantcast
Channel: Using Mac OS X `at` to schedule a daily task to clear out .Trash folders - Super User
Browsing latest articles
Browse All 2 View Live

Answer by Lri for Using Mac OS X `at` to schedule a daily task to clear out...

rm -rf ~/Trash/* often results in permission denied errors unless you run it as root. osascript -e 'tell app "Finder" to empty trash' would also show an error dialog if some files are in use. You could...

View Article



Using Mac OS X `at` to schedule a daily task to clear out .Trash folders

How do I use the OS X at command to schedule a daily clean-up of the user's .Trash folder? I'm thinking something along the lines of: rm -rf ~/.Trash/**/* | at 0:00 + 1 day Will this clean the trash...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images