No description, website, or topics provided.
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with uu59:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
benchmark
lib
spec
.document
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.markdown
Rakefile
VERSION
crontab-parser.gemspec

README.markdown

Usage

cron = CrontabParser.new(`crontab -l`)
now = Time.now
cron.find_all{|row|
  row.should_run?(now)
}.each{|row|
  puts "#{row.cmd} goes run just now"
}

cron = CrontabParser.new(<<-CRON)
* * * * * monitor-process
@daily mailme
@monthly full-backup
CRON

now = Time.now
cron.find_all{|row|
  row.should_run?(now)
}.each{|row|
  puts "#{row.cmd} goes run just now"
}