Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel

Reminders Crontab

 

 

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded


ajunpreet at gmail

Jun 5, 2012, 7:20 AM

Post #1 of 2 (313 views)
Permalink
Reminders Crontab

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'


jeff at voskamp

Jun 5, 2012, 7:40 AM

Post #2 of 2 (301 views)
Permalink
Re: Reminders Crontab [In reply to]

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
--------
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.