Skip to content

Comment on More dynamic cronjobs

Comments

Cool. Had no idea you could run commands inside a CRON expression.

Running a command is the main idea of cron. In this case, the author runs composite commands like:

    test && action
Where 'test' is another shell command that returns 0 or 1. This is not a special cron syntax, it's just the inherent capability of the Unix shell.

In any case, this whole approach is very clever and shows the beauty of The Unix Way.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.