[rt-users] issue using rt-crontool

Stephen Turner sturner at MIT.EDU
Mon Nov 14 14:23:09 EST 2005


At Monday 11/14/2005 01:13 PM, Chris 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.


Chris,

Have you tried running the command from the command line? If so did you get 
the same result.

>Could you also post the content of the 'Ignored tickets' template?


Thanks,
Steve




More information about the rt-users mailing list