This Thursday, Ladislav talked about Cron job in a recognizable cozy Sipod’s atmosphere. And, if you never heard about Cron or Cron Job, just keep reading.
SO, WHAT IS CRON?
Cron is a Linux utility for scheduling command or script on server to run automatically at a specified time. On the other hand Cron job is the scheduled task itself. Users that set up and maintain software environments use Cron to schedule jobs to run periodically at fixed times, dates, or intervals. These job are usually commands or shell scripts. Cron enables automation of system maintenance or administration.
For commands that you want to execute repeatedly (e.g., hourly, daily, or weekly),use crontab command. This command creates a crontab file that contains commands and instructions for the cron daemon to execute. And, if a cron job specified in your crontab entry produces any error messages when it runs, you will get a mail message reporting the errors.
HOW TO USE CRON JOBS?
Cron jobs can be very useful to automate repetitive tasks.
Specifically, you can use Cron jobs for downloading files or emails at regular intervals. You can set Cron job to run by the minute, hour, day of the week, day of the month, month or any combination of these.
If you execute scripts as a Cron job you can modify files or databases. However, they Cron jobs can perform other tasks that do not modify data on the server. For example, sending out email notifications won’t modify any data.
Using Cron, a developer can automate such tasks as mailing ezines that might be better sent during an off-hour. Besides that, Cron can automatically update stats or the regeneration of static pages from dynamic sources. Systems administrators and Web hosts can generate quota reports on their clients, complete automatic credit card billing, or similar tasks.
If you are interested in finding out more about Cron and Cron job you can click the link below.