Tool for parsing CRON-TIME expression format

Issues related to applications and software problems and general support
Post Reply
verbal_666
Posts: 8
Joined: 2021/04/10 10:00:36

Tool for parsing CRON-TIME expression format

Post by verbal_666 » 2021/07/01 08:31:40

Hi all.
I tried to search, but found nothing.

Does anyone know if there is a tool to parse a CRON-TIME expression format?

Something like,

Code: Select all

cron-parser */15 * * * *
which returns a ReturnCode or an output of your choice based on the time format entered? (in this case "always, every 15 minutes")

It would be soooo useful for some scripts out of crontab. I am currently using an "huddle",

Code: Select all

if [[ "$(date +'%M')" =~ ^00|^15|^30|^45 ]];then ...........
... and obviously it works, but it would be very, very useful a simulator/parser of the real CRON-TIME.

Thanks.

Post Reply