[rt-users] RE: rt-crontool not working

Harald Volz volzh at junese.de
Tue May 13 04:50:57 EDT 2003


Hi,
thanks to Colin Brett who has given me the hint, that the help of crontool is misleading:

As proposed I checked the help:
./rt-crontool --help
[...]
Example:
 The following command will find all active tickets in the queue 'general' and set their priority to 99 if they haven't been touched in 4 hours:
 sbin/cron_shim \
  --search RT::Search::ActiveTicketsInQueue  --search-arg general \
  --condition RT::Condition::UntouchedInHours --condition-arg 4 \
  --action RT::Action::SetPriority --action-arg 99 \
  --verbose

Just tried this 
linuxnms:/opt/rt3/bin # ./rt-crontool \
>  --search RT::Search::ActiveTicketsInQueue  --search-arg general \
>   --condition RT::Condition::UntouchedInHours --condition-arg 4 \
>   --action RT::Action::SetPriority --action-arg 99 \
>   --verbose

Still getting an error:
[Tue May 13 08:31:36 2003] [crit]: Failed to load module RT::Condition::UntouchedInHours. (Can't locate Win32/Locale.pm in @INC (@INC contains: /opt/rt3/lib /opt/rt3/local/lib /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at (eval 1498) line 3.
) at ./rt-crontool line 137.
 (/opt/rt3/lib/RT.pm:232)

Colin Brett wrote:
I saw this same problem using RT 3.0.0. The problem was that
RT::Condition::UntouchedInHours didn't exist in the
/opt/rt3/lib/RT/Condition directory. I got round the problem initially by
using RT::Condition::Overdue .

Hm, how to write and add Conditions like
UntouchedInHours (as described in the help)
24HoursSinceStart and similar timing conditions ?


kind regards,
harald




More information about the rt-users mailing list