BlueWho.com - Reseller Hosting  

Go Back   BlueWho.com - Reseller Hosting > BlueWho.com - General forum > The Front Lounge
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Rate Thread
Old 06-08-2010, 08:38 PM   #1
ncalsurfer
Registered User
 
Join Date: Jul 2004
Location: norcal usa
Age: 40
Posts: 35
Default Need help with a delete /.Trash cron job

Hello,

I'm trying to write a cron job for some of my accounts that will delete all trash email older than 24hours in the mail /.Trash folder once a day.

I've tried a few jobs similar to below, but none are working:
find /mail/domainname/*/.Trash/* -type f -mtime +1 | xargs rm -f

I think my folder structure is wrong as I keep receiving "no such file or directory" errors. 24 hour parameter isn't absolutely necessary as I could run a more generic job 2x a week.

Any help would be greatly appreciated.

Thanks everyone!
ncalsurfer is offline   Reply With Quote
Reply


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:08 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2007, BlueWho.com