How to run cron job
every day from 8:00 AM
to 8:00 PM
at 20 minutes interval eg cron job should start at 8:00 AM
every day, then run at 8:20 AM
then 8:40 AM
then 9:00 AM
up to 8:00 PM
. Thanks.
EDIT: How to Implement it with ruby whenever
gem.
Just use two cronjobs:
That is:
As a reminder, this is the format for a cronjob: