<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Here is the code, I believe this was custom written by a previous
    employee:<br>
    <pre>#!/usr/bin/perl</pre>
    <pre>use strict;</pre>
    <pre>use warnings;</pre>
    <pre>
# Points to the RT4 library</pre>
    <pre>use lib ("/opt/rt4/lib","/opt/rt4/local/lib");</pre>
    <pre>my $crontool = "/opt/rt4/bin/rt-crontool";</pre>
    <pre>
</pre>
    <pre>package RT;</pre>
    <pre>use RT::Interface::CLI qw(CleanEnv);</pre>
    <pre>
#Clean our the environment</pre>
    <pre>CleanEnv();</pre>
    <pre>
# Load the RT configuration</pre>
    <pre>RT::LoadConfig();</pre>
    <pre>
# Initialise RT</pre>
    <pre>RT::Init();</pre>
    <pre>
my $queues = new RT::Queues($RT::SystemUser);</pre>
    <pre>$queues->LimitToEnabled();</pre>
    <pre>while (my $queue = $queues->Next) {</pre>
    <pre>    my $queuename = $queue->Name;</pre>
    <pre>    system("$crontool --search RT::Search::ActiveTicketsInQueue " .</pre>
    <pre>           "--search-arg \"$queuename\" ".</pre>
    <pre>           "--action RT::Action::EscalatePriority");</pre>
    <pre>}</pre>
    <pre>
$RT::Handle->Disconnect();</pre>
    <pre>exit 0;</pre>
    <br>
    <br>
    On 07/22/2011 09:04 AM, Kevin Falcone wrote:
    <blockquote cite="mid:20110722130412.GI1845@jibsheet.com"
      type="cite">
      <pre wrap="">On Fri, Jul 22, 2011 at 08:59:05AM -0400, Jason Brown wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello all,
    We have a RT escalation script which is run every hour to
increase the priority level of a ticket.  In doing so, it creates a
lot of noise within the work order itself, placing "Enoch Root -
Priority changed" everytime its increased.  I was wondering if its
possible to suppress those messages?
</pre>
      </blockquote>
      <pre wrap="">
Without knowing what the script does, that's hard to say.
One of the RT::Actions available to rt-crontool has a "skip the
transaction" message, the other doesn't.  If you've written custom
code, you can steal the skipping code from the correct RT::Action

-kevin
</pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>

--------
2011 Training: <a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a></pre>
    </blockquote>
  </body>
</html>