NOW: Problem with rt-crontool WAS:Re: [rt-users] Time Based Query
Thomas Earl
tearl at cacdhh.org
Wed Apr 6 12:46:26 EDT 2005
Ok, maybe I'm trying to be too specific... Here is exactly what I'm
trying to do and the output that I'm getting ...
[rt-user at ns1 etc]$ /opt/rt3/bin/rt-crontool --search RT::Search::FromSQL
--search-arg "LastUpdated < '30 mins' AND Status != 'resolved' AND
Status != 'rejected'" --action RT::Action::RecordComment --template
'Ignored Tickets'
[Wed Apr 6 16:42:31 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:366)
[Wed Apr 6 16:42:31 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:366)
[Wed Apr 6 16:42:31 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:366)
[Wed Apr 6 16:42:31 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:366)
[Wed Apr 6 16:42:31 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:366)
[Wed Apr 6 16:42:31 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:366)
This query/command was taken right from the wiki so I would think that
it should work... Any ideas?
On Wed, 2005-04-06 at 12:29, Russell Mosemann wrote:
> On Wed, 6 Apr 2005, Thomas Earl wrote:
>
> > Status = 'new' AND Created < '-1 days ago' AND Created > '-3 days
> > ago'
>
> RT uses Time::ParseDate. The man page does not seem to indicate that you
> can use a negative number with ago. Besides, what does that mean?
> Doesn't 1 day ago mean yesterday and -1 day ago mean tomorrow?
>
> ----
> Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
> Matthew 8:31-32 - The first mention of deviled ham in the Bible.
More information about the rt-users
mailing list