Expand description
Run cron jobs manually.
§Points of Interest
Crontab
The brain of the tool. It takes in crontabtokens
, from which you can then run the jobs.make_instance()
Initialize a brand-new instance ofCrontab
from the current user’s crontab. It is API-sugar to read the crontab, parse it, and to feed it toCrontab
.Crontab::jobs()
List all thejobs
available.Crontab::get_job_from_uid()
get a job’s instance from its UID.Crontab::run()
Run a job (taking into account any crontab variable defined before the job).Crontab::run_detached()
Same asrun()
, but return instead of waiting for the job to finish.
§Lower level
Reader::read()
Read the current user’s crontab to aString
.Parser::parse()
Parse a crontabString
into crontabtokens
.