I have a ruby file and I need to run it once in every 3 hours. This code works fine:
27 */3 * * * /path/to/ruby -rubygems /path/to/ruby_file.rb
And I don't want this file to run between midnight 12.00 to morning 8.00
How can I set it?
27 9-23/3 * * *
should work on most modern variants of Unix.
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