Parses /etc/anacrontab
Author: Raphael Pinson rap@gmai l.com hink
Anacron | Parses /etc/anacrontab |
Reference | This lens tries to keep as close as possible to `man 5 anacrontab` where possible. |
License | This file is licensed under the LGPL v2+, like the rest of Augeas. |
Lens Usage | |
Configuration files | This lens applies to /etc/anacrontab. |
Examples | The Test_Anacron file contains various examples and tests. |
ENTRIES | |
shellvar | A shell variable in crontab |
period | |
period_name_re | The valid values for period_name. |
period_name | In the format “@keyword” |
delay | The delay for an entry |
job_identifier | The job_identifier for an entry |
entry | An anacrontab entry |
lns | The anacron lens |
filter |
This lens applies to /etc/anacrontab. See filter.
The Test_Anacron file contains various examples and tests.
let period_name_re = "monthly"
The valid values for period_name. Currently only “monthly”
let delay = [ label "delay" . store Rx.integer ]
The delay for an entry
let job_identifier = [ label "job-identifier" . store Rx.word ]
The job_identifier for an entry
A shell variable in crontab
let shellvar = Cron.shellvar
let period = [ label "period" . store Rx.integer ]
The valid values for period_name.
let period_name_re = "monthly"
In the format “@keyword”
let period_name = [ label "period_name" . Util.del_str "@" . store period_name_re ]
The delay for an entry
let delay = [ label "delay" . store Rx.integer ]
An anacrontab entry
let entry = [ label "entry" . Util.indent . ( period | period_name ) . Sep.space . delay . Sep.space . job_identifier . Sep.space . store Rx.space_in . Util.eol ]
The job_identifier for an entry
let job_identifier = [ label "job-identifier" . store Rx.word ]
The anacron lens
let lns = ( Util.empty | Util.comment | shellvar | entry )*