Anacron

Parses /etc/anacrontab

Author: Raphael Pinson rap.nosp@m.hink@gmai.nosp@m.l.com

Summary
AnacronParses /etc/anacrontab
ReferenceThis lens tries to keep as close as possible to `man 5 anacrontab` where possible.
LicenseThis file is licensed under the LGPL v2+, like the rest of Augeas.
Lens Usage
Configuration filesThis lens applies to /etc/anacrontab.
ExamplesThe Test_Anacron file contains various examples and tests.
ENTRIES
shellvarA shell variable in crontab
period
period_name_reThe valid values for period_name.
period_nameIn the format “@keyword”
delayThe delay for an entry
job_identifierThe job_identifier for an entry
entryAn anacrontab entry
lnsThe anacron lens
filter

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.  See filter.

Examples

The Test_Anacron file contains various examples and tests.

ENTRIES

shellvar

let shellvar = Cron.shellvar

A shell variable in crontab

period

let period = [ label "period" . store Rx.integer ]

period_name_re

let period_name_re = "monthly"

The valid values for period_name.  Currently only “monthly”

period_name

let period_name = [ label "period_name" . Util.del_str "@" . store period_name_re ]

In the format “@keyword”

delay

let delay = [ label "delay" . store Rx.integer ]

The delay for an entry

job_identifier

let job_identifier = [ label "job-identifier" . store Rx.word ]

The job_identifier for an entry

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 ]

An anacrontab entry

lns

let lns = ( Util.empty | Util.comment | shellvar | entry )*

The anacron lens

filter

Provides unit tests and examples for the Anacron lens.
let shellvar = Cron.shellvar
A shell variable in crontab
let period = [ label "period" . store Rx.integer ]
let period_name_re = "monthly"
The valid values for period_name.
let period_name = [ label "period_name" . Util.del_str "@" . store period_name_re ]
In the format “@keyword”
let delay = [ label "delay" . store Rx.integer ]
The delay for an 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 ]
An anacrontab entry
let job_identifier = [ label "job-identifier" . store Rx.word ]
The job_identifier for an entry
let lns = ( Util.empty | Util.comment | shellvar | entry )*
The anacron lens
Close