Feb 12, '04 10:06:00AM • Contributed by: kristerlaag
% find /Volumes/ -name "Trash Can #*" -print0 | xargs -0 rm -RfUse it with cron to automate the task...
|
|
|
Empty network trashes on Server via the Terminal
Feb 12, '04 10:06:00AM • Contributed by: kristerlaag
Since the days of ASIP, the option to empty the trashes made by users on the server is gone. So here is the terminal command to do it:
% find /Volumes/ -name "Trash Can #*" -print0 | xargs -0 rm -RfUse it with cron to automate the task...
•
[7,041 views]
Hint Options
Empty network trashes on Server via the Terminal
I get permission denied when I try this (even with sudo invoked).
Empty network trashes on Server via the Terminal
If you are trying to run on mounted filesystems that are not exported as root, sudo (to the root user) won't work.
Run all parts of a pipe as root
If you want to run the whole pipe as root, not only the part leading up to the | (pipe) symbol, then you need to do
Empty network trashes on Server via the Terminal
Odd..
Empty network trashes on Server via the Terminal
Cool! I've been meaning to set up something that will do this, but it always got pushed down to the bottom of the list. Thanks for the hint! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.22 seconds |
|