/usr/share/doc/rt4-doc-html/rt-crontool.html is in rt4-doc-html 4.4.1-3+deb9u3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | <ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#OPTIONS">OPTIONS</a></li>
</ul>
<h1 id="NAME"><a href="#___top">NAME</a></h1>
<p>rt-crontool - a tool to act on tickets from an external scheduling tool</p>
<h1 id="SYNOPSIS"><a href="#___top">SYNOPSIS</a></h1>
<pre><code> # find all active tickets in the queue 'general' and set their priority to 99 if they are overdue:
rt-crontool \
--search RT::Search::ActiveTicketsInQueue --search-arg general \
--condition RT::Condition::Overdue \
--action RT::Action::SetPriority --action-arg 99 \
--verbose
# Escalate tickets
rt-crontool \
--search RT::Search::ActiveTicketsInQueue --search-arg general \
--action RT::Action::EscalatePriority</code></pre>
<h1 id="DESCRIPTION"><a href="#___top">DESCRIPTION</a></h1>
<p>This script is a tool to act on tickets from an external scheduling tool, such as cron.</p>
<p>Security:</p>
<p>This tool allows the user to run arbitrary perl modules from within RT. If this tool were setgid, a hostile local user could use this tool to gain administrative access to RT. It is incredibly important that nonprivileged users not be allowed to run this tool. It is suggested that you create a non-privileged unix user with the correct group membership and RT access to run this tool.</p>
<h1 id="OPTIONS"><a href="#___top">OPTIONS</a></h1>
<dl>
<dt id="search">search</dt>
<dd>
<p>Specify the search module you want to use</p>
</dd>
<dt id="search-arg">search-arg</dt>
<dd>
<p>An argument to pass to --search</p>
</dd>
<dt id="condition">condition</dt>
<dd>
<p>Specify the condition module you want to use</p>
</dd>
<dt id="condition-arg">condition-arg</dt>
<dd>
<p>An argument to pass to --condition</p>
</dd>
<dt id="action">action</dt>
<dd>
<p>Specify the action module you want to use. This option may be repeated to apply multiple actions to found tickets.</p>
</dd>
<dt id="action-arg">action-arg</dt>
<dd>
<p>An argument to pass to --action. This option may be repeated to pass corresponding arguments to multiple calls of --action.</p>
</dd>
<dt id="template">template</dt>
<dd>
<p>Specify name or id of template(s) you want to use</p>
</dd>
<dt id="transaction">transaction</dt>
<dd>
<p>Specify if you want to use either 'first', 'last' or 'all' transactions</p>
</dd>
<dt id="transaction-type">transaction-type</dt>
<dd>
<p>Specify the comma separated list of transactions' types you want to use</p>
</dd>
<dt id="log">log</dt>
<dd>
<p>Adjust LogToSTDERR config option</p>
</dd>
<dt id="verbose">verbose</dt>
<dd>
<p>Output status updates to STDOUT</p>
</dd>
</dl>
<a href="./">← Back to index</a>
|