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