Config:...Crontab(3)
π Config::Generator::Crontab π
okay so bestie, welcome to Config:...Crontab(3) β yes that's the manual page name, pls don't come for me, the dots are just how it gets abbreviated in the header, it's literally Config::Generator::Crontab and it's a Perl module π
β¨ NAME β¨
Config::Generator::Crontab β the crontab support squad for Config::Generator. that's it, that's the name, she's simple and she knows it π«Ά
πΈ DESCRIPTION πΈ
okay so real talk: this module eases the generation of crontabs. lowkey she's a little matchmaker between your Perl hash and /etc/cron.d and honestly? she ate. π₯
here's the whole vibe: a crontab is represented by a hash π. one optional special key lives in there named "mailto" β that's the one that says who should receive the cron reports, like the person who gets the group chat notifications. and then all the other keys? those are for the cron entries themselves, each one just vibing in the hash with its own name.
for instance, look at this iconic little setup:
$cron{mailto} = "john.doe\@acme.org";
$cron{hourlyfoo} = "<{rnd60}> * * * * foo --option 3";
$cron{dailybar} = "<{rnd60}> <{rnd24}> * * * bar";
$contents = format_crontab(%cron);
see how cute that is? π₯Ί
now the <{rnd*}> tokens β those little cuties get replaced by pseudo-random numbers in the given range (24 or 60), and those numbers are provided by the Config::Generator::Random module. so your crontab gets a little sprinkle of chaos β¨ but like, controlled chaos, the good kind.
π¦ FUNCTIONS π¦
this module provides the following functions β and heads up bestie, none of them are exported by default, so you gotta call them properly, no free rides π
format_crontab(HASH)β transforms the crontab abstraction represented by the givenHASHinto a string suitable to be saved under the/etc/cron.ddirectory. that's the whole glow-up: hash in, real actual crontab file string out π
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons> π
Copyright (C) CERN 2013-2016
okay that's the whole page, mwah π and for the sign-off β this was perl v5.32.1, dated 2019-07-26, so yeah she's been iconic since way back, no cap ππ
π¦ where this page comes from
- epel 9: perl-Config-Generator 1.0-10.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms