You may have routinely tasks that you want to do but doesn’t have enough time to do so. Cron Job can be of great use.
What is cron job and how can it help you ease your deleting tasks?
This program is a time-based task scheduler that works automatic with some tasks you want to do routinely. If you are using Mac OS X, Linux, and Unix-type webserver, this program will work out perfectly. Bad news for Windows users, you cannot use cron job at all. With the use of cron job, you can control any tasks at fixed times and dates. You don’t have to worry anymore about manually cleaning your mail boxes. This tool will run and maintain the system automatically. All you have to do is setup cron job in your cPanel and then a schedule.
To setup cron job, follow these steps
Structure an interval for which you want to work the program. Go to Common Settings and then click on the Command text box. Type the command and then click the Add New Cron Job button.
You can configure a schedule in six fields like this:
minute hour day month day-of-week command-line-to-execute
Say you want to schedule a task at 12:15 AM, your cron schedule should look like this:
If you are scheduling a task at a specific date and time; say on March 30 at 12:15 Am; you should write it in this way:
15 12 30 3
Delete your mail statistics logs by following these steps:
Your server has mail statistics tool that manages all types of messages that your website received, sent, and even those that have delayed or failed sending. It is a dynamic, elaborate, and organized system that help you simplify things in connection with your mails. If you receive tons and tons of mails on a daily basis, (which can actually bury the most important mails you are expecting to receive), learning how to delete these logs on a daily basis can help you organize your thoughts and tasks for the day. So here goes.
You will have to go to the /var/lib/mysql/eximstats file. This is where all of your messages–be it received or sent–are stored. To delete logs, remove all of the entries from this location. Simply clear the mail logs /var/log, exim_mainlog, exim_rejectlog, and exim_paniclog files every day. However, if you don’t want to do this manually, you can always ask a hand from cron job.
Mail Statistics stores, displays, and manages your overall messages—from incoming, to outgoing messages, even those that were delayed, failed, and rejected. It’s an organized system that help you simplify your tasks and daily routine. However, cron job is there if you want to automate your tasks in order for the system to go along how you want things to be such as deleting your mail statistics logs every day. You can use this tool on other mail folders and any programs on your server that you wish to schedule a task on.