Cron_User

Parses /var/spool/cron/*

Author: David Lutterkort lut.nosp@m.ter@watzma.nosp@m.nn.net

Summary
Cron_UserParses /var/spool/cron/*
ReferenceThis lens parses the user crontab files in /var/spool/cron.
LicenseThis file is licensed under the LGPL v2+, like the rest of Augeas.
Lens UsageSample usage of this lens in augtool
Configuration filesThis lens applies to /var/spool/cron*.
Augeas Lenses
entryA crontab entry for a user’s crontab
lnsThe cron_user lens.

Reference

This lens parses the user crontab files in /var/spool/cron.  It produces almost the same tree as the Cron.lns, except that it never contains a user field.

License

This file is licensed under the LGPL v2+, like the rest of Augeas.

Lens Usage

Sample usage of this lens in augtool

  • Get the entry that launches ‘/usr/bin/ls’
match '/files/var/spool/cron/foo/entry[. = "/usr/bin/ls"]'

Configuration files

This lens applies to /var/spool/cron*.  See filter.

Augeas Lenses

entry

let entry = [ label "entry" . Cron.indent . Cron.prefix? . ( Cron.time | Cron.schedule ) . Cron.sep_spc . store Rx.space_in . Cron.eol ]

A crontab entry for a user’s crontab

lns

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

The cron_user lens.  Almost identical to Cron.lns

let entry = [ label "entry" . Cron.indent . Cron.prefix? . ( Cron.time | Cron.schedule ) . Cron.sep_spc . store Rx.space_in . Cron.eol ]
A crontab entry for a user’s crontab
let lns = ( Cron.empty | Cron.comment | Cron.shellvar | entry )*
The cron_user lens.
Close