Linux: Run Crontab Job Every 10 Minutes
This post will guide you how to run a cron job every 10 minutes in Linux system. How do I run a cron command every 10 minutes under Linux operating system. How to run a cron job every 15 minutes in my CentOS/RHEL/Ubuntu Linux system.
Run Cron Job Every 10 Minutes
The cron tool is used to run command or your own scripts at specific date and time, for example, run once a day, run once every hour and so on. and the Cron daemon will check each cron entries in the configuration file of /etc/crontab in your linux system. So if you want to run a cron job every 10 minutes, just do the following steps:
#1 Type the following command to edit /etc/crontab file.
#crontab -e
#2 adding the below cron record.
*/10 * * * * /fio.sh
Note:
# Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed
#3 save and close the file.
Run Cron Job Every 15 Minutes
If you want to run a cron job every 15 minutes, you can try to add one of the below cron entires into your crontab file.
0,115,30,45 * * * * /fio.sh
Or
*/15 * * * * /fio.sh