3 Parses /var/spool/cron/*
5 Author: David Lutterkort <lutter@watzmann.net>
8 This lens parses the user crontab files in /var/spool/cron. It produces
9 almost the same tree as the Cron.lns, except that it never contains a user
13 This file is licensed under the LGPL v2+, like the rest of Augeas.
16 Sample usage of this lens in augtool
18 * Get the entry that launches '/usr/bin/ls'
19 > match '/files/var/spool/cron/foo/entry[. = "/usr/bin/ls"]'
21 About: Configuration files
22 This lens applies to /var/spool/cron*. See <filter>.
27 (************************************************************************
29 * A crontab entry for a user's crontab
30 *************************************************************************)
31 let entry = [ label "entry" . Cron.indent
33 . ( Cron.time | Cron.schedule )
34 . Cron.sep_spc . store Rx.space_in . Cron.eol ]
38 * The cron_user lens. Almost identical to Cron.lns
40 let lns = ( Cron.empty | Cron.comment | Cron.shellvar | entry )*
43 incl "/var/spool/cron/*" .
46 let xfm = transform lns filter