I'm seeing slashes in some crontab examples, I don't understand what they mean?
Check this one out for example
*/10 * * * * /home/ramesh/check-disk-space
http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/
I'm seeing slashes in some crontab examples, I don't understand what they mean?
Check this one out for example
*/10 * * * * /home/ramesh/check-disk-space
http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/
Depends on where the slashes are at.
The first occurrence is */10
which means every 10 and since it's the minutes column, every 10 minutes. It's shorthand for 0,10,20,30,40,50 in the minutes column.
The second through fourth, if you have to ask on those, hmmm... It's a path to the executable.
According to the example you posted, it executes that file, /home/ramesh/check-disk-space
at the given time, where */10
means that every 10 minutes, of * * * *
(The * means all the possible unit — i.e every minute of every hour through out the year, and follows this order: weeks, monthly, daily, and hourly)
cron
is for so I think attempting to draw paralells between it and Scheduled Tasks, while true, is only confusing.
Mar 23, 2012 at 2:43
Read title of p.7 of linked document "Schedule a Background Cron Job For Every 10 Minutes", also man crontab