I have a cron properties file and some of the properties contain expression like:
"* 0/5 * * * ?"
and some of them contain:
"* */5 * * * ?"
What is the difference between the two?
If I want to run every 5 minutes then which one should be used?
Thanks
PS: My project is using spring scheduler.
You can use "*/5 * * * * *"
for every 5 minutes and 0 0/5 8-10 * * *
for every 5 minutes between 8 o'clock and 10 o'clock
For more info read this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With