[rt-users] issue using rt-crontool

Ruslan Zakirov ruslan.zakirov at gmail.com
Wed Nov 30 06:48:41 EST 2005


This is known problem that when you run "rt-crontool" then Transaction
object is not available for templates and actions. It's on my TODO
list, but is low priority thing, so patches for mainline are wellcome.

On 11/14/05, Chris <chris-lists at pipelinewireless.us> wrote:
> I'm having an issue running a cron job using rt-crontool:
>
> #0 3 * * * /opt/rt3/bin/rt-crontool --search RT::Search::FromSQL \
> #--search-arg "LastUpdated < '3 days ago'  AND Status != 'resolved' AND
> Status != 'rejected'" \
> #--action RT::Action::RecordComment --template 'Ignored tickets'
>
> Gives me this error:
>
> (/opt/rt3/lib/RT/Template_Overlay.pm:369)
> [Mon Nov 14 18:06:05 2005] [error]: Template parsing error: Can't call
> method "CreatedAsString" on an undefined value at template line 3.
>  (/opt/rt3/lib/RT/Template_Overlay.pm:415)
> [Mon Nov 14 18:06:05 2005] [error]: error:    unexpected end of header
>
> This might be something easy, but I'm not a perl or script person - I just
> use it as is, so my apologies if this is an easy fix.
>
> Using RT3.4.4 on CentOS4.2, Apache 2.0.52, mysql 4.1.12.
>
> Thanks,
> Chris
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
>
> Buy your copy of our new book, RT Essentials, today!
>
> Download a free sample chapter from http://rtbook.bestpractical.com
>


--
Best regards, Ruslan.



More information about the rt-users mailing list