Class Symbiosis::Crontab
In: cron/lib/symbiosis/crontab.rb
Parent: Object
Array Utmp EventMachine::Connection ApacheLogger StandardError CrontabFormatError Enumerable IPAddr ::IPAddr Host Range Domain ConfigFile Prosody Tinydns Apache Webalizer Directory IPListDirectory TemplateDirectory Domains Alert Crontab CrontabRecord StateDB Check Runner TCPConnection Test Process BlacklistDB Template Logtail Pattern Ports Blacklist Monitor ConfigFiles Utils Firewall Symbiosis dot/f_0.png

A class representing a Crontab.

Methods

each   grep   mail_output=   new   run   test  

Attributes

crontab  [R]  The original string input to parse.
environment  [R]  environment is a hash containing environment variables set in the crontab
filename  [R]  The name of the file originally read or "string input" if no file was read
records  [R]  The array of crontab records

Public Class methods

This takes an argument of a crontab in a string, or a filename. If a filename is given, it will be read. Otherwise the string will be parsed.

Public Instance methods

An iterator for each record.

Returns any records that are ready to run now.

This sets the flag to mail output

This runs each crontab record.

This prints the cron environment, and the date/time when each job will next run.

[Validate]