[rt-devel] Reminders Crontab
Jeff Voskamp
jeff at voskamp.ca
Tue Jun 5 10:40:15 EDT 2012
On 06/05/2012 10:20 AM, Ajunpreet Singh wrote:
> I understand where the first line for contab goes, but where do you
> place the rest.
> so where do you put the line --search RT::Search::FromSQL \ and
> everything after?
>
> 0 6 * * * root /opt/rt4/bin/rt-crontool \
> --search RT::Search::FromSQL \
> --search-arg'Type ="reminder" and (Status ="open" or Status ="new")' \
> --condition RT::Condition::BeforeDue \
> --condition-arg 2d \
> --action RT::Action::SendEmail \
> --action-arg Owner \
> --transaction first \
> --template'Reminder due soon'
The '\'s specify line continuation - either make it all one long line,
or do it exactly as above - no spaces after the '\'s. Cron knows to
connect the lines together if they end in '\'.
Jeff
More information about the rt-devel
mailing list