Re: create crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mad Unix wrote:
I have mail-hots serving 300 users pop3/imap through qmail
I manually remove old entries manually which older than 30 days
for each user
find /home/vpopmail/domains/sdcdom/user001/ -type f -mtime +30 -exec rm {} ";" find /home/vpopmail/domains/sdcdom/user002/ -type f -mtime +30 -exec rm {} ";"
...etc.
How can i add this entry into my crontab, to run at the end of the Week at 6 clock
in the morning.
 am using Linux RHEL 3
 Thanks

Hmm... some people just replied to you but seeing as i've typed it now,

Assuming that by "the end of the week" you mean Saturday, something like:

(As root) crontab -e

0 6 * * 6 find /home/vpopmail/domains/sdcdom/user001/ -type f -mtime +30 -exec rm {}
";" > /dev/null

should be somewhere near.

I'm not 100% sure about the first '*' though, 'man 5 crontab' will help you refine it.

--
Mark Farmer
Linux System Administrator

___________________________________________________ This email is intended for the named recipient. The information contained in it is confidential. You should not copy it for any purposes, nor disclose its contents to any other party. If you received this email in error, please notify the sender immediately via email, and delete it from your computer. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company. Registered Office: PO Box 14, Chartwell Dr, Wigston, Leicester. LE18 1AT __________________________________________________

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux