Run crontab Every 10 Minutes
Q. How do I run a cron job or a shell script every 10 minutes using Linux / UNIX cron service?
A. cron is a time-based scheduling service in Linux / Unix-like computer operating systems.
Login to UNIX system
Type the following command to enter cronjob:
$ crontab -e
Each cronjob has following syntax:
# +---------------- minute (0 - 59) # | +------------- hour (0 - 23) # | | +---------- day of month (1 - 31) # | | | +------- month (1 - 12) # | | | | +---- day of week (0 - 6) (Sunday=0 or 7) # | | | | | * * * * * command to be executed
To get crontab to run a task every 10 minutes you could type as follow
*/10 * * * * /path/to/command
Save and close the file.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- HP-UX UNIX: Start / Stop and Configure Cron Services
- Disable the mail alert by crontab command
- What is Cron?
- How do I add jobs to cron under Linux or UNIX oses?
- How To Reset Linux Firewall Automatically While Testing Configuration With Remote Server Over SSH Session
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: computer operating systems, cron, cron every 10 min, cron job, cronjob, crontab, crontab command, crontab e, Linux, scheduling service, syntax, UNIX, unix cron, unix system



June 27th, 2008 (2 weeks ago) at 3:14 pm
*/10 * * * * /home/test.sh > /dev/null 2>&1
crontab: error on previous line; unexpected character found in line.
crontab: errors detected in input, no crontab file generated.
Guess it does not work in Solaris 8