AT&T Interactive R&D

 
 

Cron

The cron resource will set cron jobs at the intervals you set

Usage

   1  has_cron(:name => '...') do
   2  	# More options. 
   3  	# This block is optional
   4  end

Options

Example

   1  has_cron(:name => "report mailer", :minute => "5", :hour => "0", :weekday => 1) do
   2  	command "/bin/sh /home/user/email_reports.sh"
   3  end