This is a program which parses a cron string and expands each field to show the times at which it will run.
-
Install Ruby 2.7.0
-
Install Bundler
$ gem install bundler
$ bundle install
$ ruby cron_parser.rb "*/15 0 1,15 * 1-5 /usr/bin/find"
You can test parser using Minitest.
$ ruby test/display_test.rb
$ ruby test/parse_test.rb
Copyright (c) Piotr Brudny.