Skip to content

Bash script to match crontab string with actual date

License

Notifications You must be signed in to change notification settings

dierre72/crontab-match

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Crontab string matching with actual date time - Version 1.1

Bash script return true if the crontab string passed can run in the actual date otherwise false.

Script uses crontab command avaliable in Ubuntu / Debian and similar Linux distributions

Sample use: ./crontab.sh "m h d mon w"

Sample output: true/false

Available formatting for crontab elements

  • *
  • Integer
  • */Integer (*/2 -> in case of minutes means every 2 minutes)
  • Integer-Integer (10-15 -> in case of minutes between 10 and 15 minutes)
  • Integer-Integer/Integer (10-15/2 -> in case of minutes between 10 and 15 minutes every 2 minutes)
  • Integer,Integer,Integer

About

Bash script to match crontab string with actual date

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%