Anacron - Augeas Documentation

# Anacron

Parses /etc/anacrontab

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

Summary

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 |

### 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