Cronjob examples

Crontab every 5 minutes

An instance of a CronJob will be the backup of a database at 2 am every day of the week. In this case, the CronTab record could incorporate the following:

0 2 * * */bin/sh


Sometimes it is able to be important to devise the execution of responsibilities for decided on months only. The following pattern script runs in January, May, and August:

* * * 1,5,8 */bin/sh

If you most effective need obligations to run on decided on days at a selected time, for example, each Sunday and Friday at five pm, the CronTab record would possibly appear to be this:

0 17 * * 0,5/bin/sh


Why are you leaving
We have some offer for you