![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Emails on HP-UX | Phuti | UNIX for Dummies Questions & Answers | 0 | 03-26-2008 02:22 AM |
| Creating emails | ferret495 | UNIX for Dummies Questions & Answers | 4 | 02-04-2008 10:13 PM |
| CRON. How to delete files within a directory | southoxon | UNIX for Dummies Questions & Answers | 1 | 08-24-2003 07:55 AM |
| How do we delete spam email on mmdf | esh | UNIX for Dummies Questions & Answers | 2 | 06-09-2003 06:48 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Delete Old Spam Emails Custom Cron
Hey Guys,
I've done some research however I got stuck. My goal is to create a cron job that runs every hour and goes through all web accounts on my server and deletes spam emails that are older than 3 days. This is what I came up with: Code:
0 * * * * find /home/*/mail/*/*/.spam/cur/* -type f -mtime +3 -exec rm{}
Code:
find /home/*/mail/*/*/.spam/cur/* -type f -print |xargs ls|wc -l |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|