https://rt-wiki.bestpractical.com/index.php?title=ShredderControl&feed=atom&action=history
ShredderControl - Revision history
2024-03-29T12:41:34Z
Revision history for this page on the wiki
MediaWiki 1.37.2
https://rt-wiki.bestpractical.com/index.php?title=ShredderControl&diff=26641&oldid=prev
Phanousk at 14:40, 6 February 2019
2019-02-06T14:40:55Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 10:40, 6 February 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l7">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Ideally, both [[CountTickets]] and [[ShredderControl]] will be located in /path/to/rt/sbin where rtx-shredder is located.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Ideally, both [[CountTickets]] and [[ShredderControl]] will be located in /path/to/rt/sbin where rtx-shredder is located.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"> </del><source lang="bash">#!/bin/bash</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><source lang="bash"><ins style="font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>#!/bin/bash</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Statuses=( new open stalled resolved rejected deleted )</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Statuses=( new open stalled resolved rejected deleted )</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l19">Line 19:</td>
<td colspan="2" class="diff-lineno">Line 20:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -e "$count\t`date -d '7 hours ago' '+%D %T'`"</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -e "$count\t`date -d '7 hours ago' '+%D %T'`"</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> done</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> done</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></pre></source></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><source lang="bash"><pre></ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> [root@rt02 sbin]# cat shredder.sh</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> [root@rt02 sbin]# cat shredder.sh</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> #!/bin/bash</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> #!/bin/bash</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l24">Line 24:</td>
<td colspan="2" class="diff-lineno">Line 27:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> usage()</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> usage()</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> {</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> cat <del style="font-weight: bold; text-decoration: none;">&lt;&lt; </del>EOF</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> cat <ins style="font-weight: bold; text-decoration: none;"><< </ins>EOF</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> Usage: $0 <del style="font-weight: bold; text-decoration: none;">&lt;</del>status<del style="font-weight: bold; text-decoration: none;">&gt; </del>[num] [wait] [until]</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> Usage: $0 <ins style="font-weight: bold; text-decoration: none;"><</ins>status<ins style="font-weight: bold; text-decoration: none;">> </ins>[num] [wait] [until]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Options:</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Options:</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> status - Ticket status name. Required.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> status - Ticket status name. Required.</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l90">Line 90:</td>
<td colspan="2" class="diff-lineno">Line 93:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -n "Finished at: " ; date +'%D %T %Z'</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -n "Finished at: " ; date +'%D %T %Z'</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"> </del></source></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></pre></ins></source></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I made some modifications, for 3.8.9 and Ubuntu Server 10.04 - Luciano</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I made some modifications, for 3.8.9 and Ubuntu Server 10.04 - Luciano</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> <source lang="bash"></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> <source lang="bash"<ins style="font-weight: bold; text-decoration: none;">><pre</ins>></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> #!/bin/bash</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> #!/bin/bash</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l163">Line 163:</td>
<td colspan="2" class="diff-lineno">Line 166:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -n "Finished at: " ; date +'%D %T %Z'</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -n "Finished at: " ; date +'%D %T %Z'</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"> </del></source></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></pre></ins></source></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Shredder]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Shredder]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Contribution]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Contribution]]</div></td></tr>
<!-- diff cache key bestpractical_mediawiki1459887241:diff::1.12:old-26542:rev-26641 -->
</table>
Phanousk
https://rt-wiki.bestpractical.com/index.php?title=ShredderControl&diff=26542&oldid=prev
Phanousk at 10:38, 22 January 2018
2018-01-22T10:38:38Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 06:38, 22 January 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l73">Line 73:</td>
<td colspan="2" class="diff-lineno">Line 73:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> fi</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> fi</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> numticketleft="\./count-tickets.sh $status | awk '{print $2}'<del style="font-weight: bold; text-decoration: none;">\</del>"</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> numticketleft="\./count-tickets.sh $status | awk '{print $2}'"</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if [ $numticketleft -le $untl ] ; then</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if [ $numticketleft -le $untl ] ; then</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo "The number of tickets ($numticketleft) is equal or less than the until limit set ($untl). No work to do."</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo "The number of tickets ($numticketleft) is equal or less than the until limit set ($untl). No work to do."</div></td></tr>
<!-- diff cache key bestpractical_mediawiki1459887241:diff::1.12:old-26541:rev-26542 -->
</table>
Phanousk
https://rt-wiki.bestpractical.com/index.php?title=ShredderControl&diff=26541&oldid=prev
Phanousk at 12:08, 19 January 2018
2018-01-19T12:08:40Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 08:08, 19 January 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l37">Line 37:</td>
<td colspan="2" class="diff-lineno">Line 37:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> This will run until there are no tickets left, shredding 5 tickets at a time, with a second pause between shreds.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> This will run until there are no tickets left, shredding 5 tickets at a time, with a second pause between shreds.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $0 deleted 10 1 5</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> $0 deleted 10 1 5</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> This will run until there<del style="font-weight: bold; text-decoration: none;">'s </del>5 or less tickets, shredding 10 at a time, with a second pause between shreds.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> This will run until there <ins style="font-weight: bold; text-decoration: none;">is </ins>5 or less tickets, shredding 10 at a time, with a second pause between shreds.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> EOF</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> EOF</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l73">Line 73:</td>
<td colspan="2" class="diff-lineno">Line 73:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> fi</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> fi</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> numticketleft="<del style="font-weight: bold; text-decoration: none;">`</del>./count-tickets.sh $status | awk '{print $2}'<del style="font-weight: bold; text-decoration: none;">`</del>"</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> numticketleft="<ins style="font-weight: bold; text-decoration: none;">\</ins>./count-tickets.sh $status | awk '{print $2}'<ins style="font-weight: bold; text-decoration: none;">\</ins>"</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if [ $numticketleft -le $untl ] ; then</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> if [ $numticketleft -le $untl ] ; then</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo "The number of tickets ($numticketleft) is equal or less than the until limit set ($untl). No work to do."</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo "The number of tickets ($numticketleft) is equal or less than the until limit set ($untl). No work to do."</div></td></tr>
<!-- diff cache key bestpractical_mediawiki1459887241:diff::1.12:old-26540:rev-26541 -->
</table>
Phanousk
https://rt-wiki.bestpractical.com/index.php?title=ShredderControl&diff=26540&oldid=prev
Phanousk at 12:04, 19 January 2018
2018-01-19T12:04:33Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 08:04, 19 January 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l7">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Ideally, both [[CountTickets]] and [[ShredderControl]] will be located in /path/to/rt/sbin where rtx-shredder is located.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Ideally, both [[CountTickets]] and [[ShredderControl]] will be located in /path/to/rt/sbin where rtx-shredder is located.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> <<del style="font-weight: bold; text-decoration: none;">nowiki</del>>#!/bin/bash</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> <<ins style="font-weight: bold; text-decoration: none;">source lang="bash"</ins>>#!/bin/bash</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Statuses=( new open stalled resolved rejected deleted )</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> Statuses=( new open stalled resolved rejected deleted )</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l90">Line 90:</td>
<td colspan="2" class="diff-lineno">Line 90:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -n "Finished at: " ; date +'%D %T %Z'</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -n "Finished at: " ; date +'%D %T %Z'</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </<del style="font-weight: bold; text-decoration: none;">nowiki</del>></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </<ins style="font-weight: bold; text-decoration: none;">source</ins>></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I made some modifications, for 3.8.9 and Ubuntu Server 10.04 - Luciano</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>I made some modifications, for 3.8.9 and Ubuntu Server 10.04 - Luciano</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> <<del style="font-weight: bold; text-decoration: none;">nowiki</del>></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> <<ins style="font-weight: bold; text-decoration: none;">source lang="bash"</ins>></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> #!/bin/bash</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> #!/bin/bash</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l163">Line 163:</td>
<td colspan="2" class="diff-lineno">Line 163:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -n "Finished at: " ; date +'%D %T %Z'</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> echo -n "Finished at: " ; date +'%D %T %Z'</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </<del style="font-weight: bold; text-decoration: none;">nowiki</del>></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </<ins style="font-weight: bold; text-decoration: none;">source</ins>></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Shredder]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Shredder]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Contribution]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Contribution]]</div></td></tr>
<!-- diff cache key bestpractical_mediawiki1459887241:diff::1.12:old-3628:rev-26540 -->
</table>
Phanousk
https://rt-wiki.bestpractical.com/index.php?title=ShredderControl&diff=3628&oldid=prev
Admin: 5 revisions imported
2016-04-06T20:37:45Z
<p>5 revisions imported</p>
<p><b>New page</b></p><div>This BASH script allows one to shred a large number of tickets hopefully without making the machine unresponsive.<br />
<br />
It shreds tickets of a specified status, a specified number at a time, with a specified pause between shreds, until a specified number of tickets are left. If that sentence is confusing, check the usage text in the script.<br />
<br />
This script requires the [[CountTickets]] script which should be named count-tickets.sh.<br />
<br />
Ideally, both [[CountTickets]] and [[ShredderControl]] will be located in /path/to/rt/sbin where rtx-shredder is located.<br />
<br />
<nowiki>#!/bin/bash<br />
<br />
Statuses=( new open stalled resolved rejected deleted )<br />
if [ $1 ] ; then Statuses=( $* ) ; fi<br />
<br />
for Status in ${Statuses[@]} ; do<br />
echo -en "$Status:\t"<br />
if [ ${#Status} -lt 7 ] ; then echo -en "\t" ; fi<br />
count=`echo "select count(*) from Tickets where Tickets.Status=\"$Status\";" | mysql rt3`<br />
count=`echo $count | awk '{print $2}'`<br />
echo -e "$count\t`date -d '7 hours ago' '+%D %T'`"<br />
done<br />
[root@rt02 sbin]# cat shredder.sh<br />
#!/bin/bash<br />
<br />
usage()<br />
{<br />
cat &lt;&lt; EOF<br />
<br />
Usage: $0 &lt;status&gt; [num] [wait] [until]<br />
Options:<br />
status - Ticket status name. Required.<br />
num - Number of tickets to shred at a time. Default=5<br />
wait - Number of seconds to wait between shred sets. Default=1<br />
until - How long to continue running until X tickets are remaining. Default=n/a<br />
<br />
Examples:<br />
$0 rejected<br />
This will run until there are no tickets left, shredding 5 tickets at a time, with a second pause between shreds.<br />
$0 deleted 10 1 5<br />
This will run until there's 5 or less tickets, shredding 10 at a time, with a second pause between shreds.<br />
<br />
EOF<br />
}<br />
<br />
Statuses=( new open stalled resolved rejected deleted )<br />
if ! [ $1 ] ; then usage ; exit<br />
else<br />
if ! [[ "${Statuses[*]}" =~ "$1" ]] ; then<br />
echo "Status $1 not recognized."<br />
echo "Statuses allowed: ${Statuses[*]}"<br />
exit<br />
fi<br />
status="$1"<br />
fi<br />
<br />
if [ $2 ] ; then<br />
num=$2<br />
if [ $num -lt 1 ] ; then echo "Use a value for num above 0 [zero]." ; exit ; fi<br />
if [ $num -gt 100 ] ; then echo "Use a value for num below 101." ; exit ; fi<br />
else num=5<br />
fi<br />
<br />
if [ $3 ] ; then<br />
wait=$3<br />
if [ $wait -lt 0 ] ; then echo "Use a positive, or zero, value for wait." ; exit ; fi<br />
if [ $wait -gt 100 ] ; then echo "Use a value for wait below 101." ; exit ; fi<br />
else wait=1<br />
fi<br />
<br />
if [ $4 ] ; then<br />
untl=$4<br />
if [ $wait -lt 0 ] ; then echo "Use a positive, or zero, value for until." ; exit ; fi<br />
else untl=0<br />
fi<br />
<br />
numticketleft="`./count-tickets.sh $status | awk '{print $2}'`"<br />
if [ $numticketleft -le $untl ] ; then<br />
echo "The number of tickets ($numticketleft) is equal or less than the until limit set ($untl). No work to do."<br />
exit<br />
fi<br />
<br />
shredcmd="./rtx-shredder --force --plugin 'Tickets=status,$status;limit,$num'"<br />
<br />
echo -n "Started at: " ; date +'%D %T %Z'<br />
<br />
while [ $numticketleft -gt $untl ] ; do<br />
eval $shredcmd &gt; /dev/null<br />
sleep $wait<br />
numticketleft="`./count-tickets.sh $status | awk '{print $2}'`"<br />
done<br />
<br />
echo -n "Finished at: " ; date +'%D %T %Z'<br />
</nowiki><br />
<br />
<br />
<br />
I made some modifications, for 3.8.9 and Ubuntu Server 10.04 - Luciano<br />
<nowiki><br />
#!/bin/bash<br />
<br />
usage () {<br />
<br />
<br />
echo "Usage: $0 <status> [num] [wait] [until]"<br />
echo "Options:"<br />
echo " status - Ticket status name. Required."<br />
echo " num - Number of tickets to shred at a time. Default=5"<br />
echo " wait - Number of seconds to wait between shred sets. Default=1"<br />
echo " until - How long to continue running until X tickets are remaining. Default=n/a"<br />
<br />
echo " Examples:"<br />
echo " $0 Rejected"<br />
echo " This will run until there are no tickets left, shredding 5 tickets at a time, with a second pause between shreds."<br />
echo " $0 Deleted 10 1 5"<br />
echo " This will run until theres 5 or less tickets, shredding 10 at a time, with a second pause between shreds."<br />
exit 1<br />
}<br />
<br />
Statuses=( New Open Stalled Resolved Rejected Deleted )<br />
if ! [ $1 ] ; then usage ; exit<br />
else<br />
if ! [[ "${Statuses[*]}" =~ "$1" ]] ; then<br />
echo "Status $1 not recognized."<br />
echo "Statuses allowed: ${Statuses[*]}"<br />
exit<br />
fi<br />
status="$1"<br />
fi<br />
<br />
if [ $2 ] ; then<br />
num=$2<br />
if [ $num -lt 1 ] ; then echo "Use a value for num above 0 [zero]." ; exit ; fi<br />
if [ $num -gt 100 ] ; then echo "Use a value for num below 101." ; exit ; fi<br />
else num=5<br />
fi<br />
<br />
if [ $3 ] ; then<br />
wait=$3<br />
if [ $wait -lt 0 ] ; then echo "Use a positive, or zero, value for wait." ; exit ; fi<br />
if [ $wait -gt 100 ] ; then echo "Use a value for wait below 101." ; exit ; fi<br />
else wait=1<br />
fi<br />
<br />
if [ $4 ] ; then<br />
untl=$4<br />
if [ $wait -lt 0 ] ; then echo "Use a positive, or zero, value for until." ; exit ; fi<br />
else untl=0<br />
fi<br />
<br />
numticketleft="`./count-tickets.sh $status | awk '{print $2}'`"<br />
if [ $numticketleft -le $untl ] ; then<br />
echo "The number of tickets ($numticketleft) is equal or less than the until limit set ($untl). No work to do."<br />
exit<br />
fi<br />
<br />
echo -n "Started at: " ; date +'%D %T %Z'<br />
<br />
while [ $numticketleft -gt $untl ] ; do<br />
./rt-shredder --force --plugin "Tickets=query,Status = '$status' AND LastUpdated < '30 days ago';limit,$num"<br />
sleep $wait<br />
numticketleft="`./count-tickets.sh $status | awk '{print $2}'`"<br />
done<br />
<br />
echo -n "Finished at: " ; date +'%D %T %Z'<br />
<br />
</nowiki><br />
[[Category:Shredder]]<br />
[[Category:Contribution]]</div>
Admin
https://rt-wiki.bestpractical.com/index.php?title=ShredderControl&diff=3626&oldid=prev
143.54.235.94 at 16:11, 28 July 2011
2011-07-28T16:11:42Z
<p></p>
<a href="https://rt-wiki.bestpractical.com/index.php?title=ShredderControl&diff=3626&oldid=3625">Show changes</a>
143.54.235.94
https://rt-wiki.bestpractical.com/index.php?title=ShredderControl&diff=3625&oldid=prev
143.54.235.94 at 16:06, 28 July 2011
2011-07-28T16:06:15Z
<p></p>
<p><b>New page</b></p><div>This BASH script allows one to shred a large number of tickets hopefully without making the machine unresponsive.<br />
<br />
It shreds tickets of a specified status, a specified number at a time, with a specified pause between shreds, until a specified number of tickets are left. If that sentence is confusing, check the usage text in the script.<br />
<br />
This script requires the [[CountTickets]] script which should be named count-tickets.sh.<br />
<br />
Ideally, both [[CountTickets]] and [[ShredderControl]] will be located in /path/to/rt/sbin where rtx-shredder is located.<br />
<br />
<nowiki>#!/bin/bash<br />
<br />
Statuses=( new open stalled resolved rejected deleted )<br />
if [ $1 ] ; then Statuses=( $* ) ; fi<br />
<br />
for Status in ${Statuses[@]} ; do<br />
echo -en "$Status:\t"<br />
if [ ${#Status} -lt 7 ] ; then echo -en "\t" ; fi<br />
count=`echo "select count(*) from Tickets where Tickets.Status=\"$Status\";" | mysql rt3`<br />
count=`echo $count | awk '{print $2}'`<br />
echo -e "$count\t`date -d '7 hours ago' '+%D %T'`"<br />
done<br />
[root@rt02 sbin]# cat shredder.sh<br />
#!/bin/bash<br />
<br />
usage()<br />
{<br />
cat &lt;&lt; EOF<br />
<br />
Usage: $0 &lt;status&gt; [num] [wait] [until]<br />
Options:<br />
status - Ticket status name. Required.<br />
num - Number of tickets to shred at a time. Default=5<br />
wait - Number of seconds to wait between shred sets. Default=1<br />
until - How long to continue running until X tickets are remaining. Default=n/a<br />
<br />
Examples:<br />
$0 rejected<br />
This will run until there are no tickets left, shredding 5 tickets at a time, with a second pause between shreds.<br />
$0 deleted 10 1 5<br />
This will run until there's 5 or less tickets, shredding 10 at a time, with a second pause between shreds.<br />
<br />
EOF<br />
}<br />
<br />
Statuses=( new open stalled resolved rejected deleted )<br />
if ! [ $1 ] ; then usage ; exit<br />
else<br />
if ! [[ "${Statuses[*]}" =~ "$1" ]] ; then<br />
echo "Status $1 not recognized."<br />
echo "Statuses allowed: ${Statuses[*]}"<br />
exit<br />
fi<br />
status="$1"<br />
fi<br />
<br />
if [ $2 ] ; then<br />
num=$2<br />
if [ $num -lt 1 ] ; then echo "Use a value for num above 0 [zero]." ; exit ; fi<br />
if [ $num -gt 100 ] ; then echo "Use a value for num below 101." ; exit ; fi<br />
else num=5<br />
fi<br />
<br />
if [ $3 ] ; then<br />
wait=$3<br />
if [ $wait -lt 0 ] ; then echo "Use a positive, or zero, value for wait." ; exit ; fi<br />
if [ $wait -gt 100 ] ; then echo "Use a value for wait below 101." ; exit ; fi<br />
else wait=1<br />
fi<br />
<br />
if [ $4 ] ; then<br />
untl=$4<br />
if [ $wait -lt 0 ] ; then echo "Use a positive, or zero, value for until." ; exit ; fi<br />
else untl=0<br />
fi<br />
<br />
numticketleft="`./count-tickets.sh $status | awk '{print $2}'`"<br />
if [ $numticketleft -le $untl ] ; then<br />
echo "The number of tickets ($numticketleft) is equal or less than the until limit set ($untl). No work to do."<br />
exit<br />
fi<br />
<br />
shredcmd="./rtx-shredder --force --plugin 'Tickets=status,$status;limit,$num'"<br />
<br />
echo -n "Started at: " ; date +'%D %T %Z'<br />
<br />
while [ $numticketleft -gt $untl ] ; do<br />
eval $shredcmd &gt; /dev/null<br />
sleep $wait<br />
numticketleft="`./count-tickets.sh $status | awk '{print $2}'`"<br />
done<br />
<br />
echo -n "Finished at: " ; date +'%D %T %Z'<br />
</nowiki><br />
<br />
<br />
<br />
I made some modifications, for 3.8.9 and Ubuntu Server 10.04 - Luciano<br />
<br />
<nowiki><br />
#!/bin/bash<br />
<br />
usage () {<br />
<br />
echo "Usage: $0 <status> [num] [wait] [until]"<br />
echo "Options:"<br />
echo " status - Ticket status name. Required."<br />
echo " num - Number of tickets to shred at a time. Default=5"<br />
echo " wait - Number of seconds to wait between shred sets. Default=1"<br />
echo " until - How long to continue running until X tickets are remaining. Default=n/a"<br />
<br />
echo " Examples:"<br />
echo " $0 Rejected"<br />
echo " This will run until there are no tickets left, shredding 5 tickets at a time, with a second pause between shreds."<br />
echo " $0 Deleted 10 1 5"<br />
echo " This will run until theres 5 or less tickets, shredding 10 at a time, with a second pause between shreds."<br />
exit 1<br />
}<br />
<br />
Statuses=( New Open Stalled Resolved Rejected Deleted )<br />
if ! [ $1 ] ; then usage ; exit<br />
else<br />
if ! [[ "${Statuses[*]}" =~ "$1" ]] ; then<br />
echo "Status $1 not recognized."<br />
echo "Statuses allowed: ${Statuses[*]}"<br />
exit<br />
fi<br />
status="$1"<br />
fi<br />
<br />
if [ $2 ] ; then<br />
num=$2<br />
if [ $num -lt 1 ] ; then echo "Use a value for num above 0 [zero]." ; exit ; fi<br />
if [ $num -gt 100 ] ; then echo "Use a value for num below 101." ; exit ; fi<br />
else num=5<br />
fi<br />
<br />
if [ $3 ] ; then<br />
wait=$3<br />
if [ $wait -lt 0 ] ; then echo "Use a positive, or zero, value for wait." ; exit ; fi<br />
if [ $wait -gt 100 ] ; then echo "Use a value for wait below 101." ; exit ; fi<br />
else wait=1<br />
fi<br />
<br />
if [ $4 ] ; then<br />
untl=$4<br />
if [ $wait -lt 0 ] ; then echo "Use a positive, or zero, value for until." ; exit ; fi<br />
else untl=0<br />
fi<br />
<br />
numticketleft="`./count-tickets.sh $status | awk '{print $2}'`"<br />
if [ $numticketleft -le $untl ] ; then<br />
echo "The number of tickets ($numticketleft) is equal or less than the until limit set ($untl). No work to do."<br />
exit<br />
fi<br />
<br />
# shredcmd="./rt-shredder --force --plugin 'Tickets=query,Status = $status;limit,$num'"<br />
#shredcmd="sbin/rt-shredder --force --plugin "Tickets=query,Status = '$status' AND LastUpdated < '30 days ago';limit,$num"<br />
#cat "(/usr/local/rt/sbin/rt-shredder --force --plugin "Tickets=query,Status = '$status' AND LastUpdated < '30 days ago';limit,$num")" > shredcmd<br />
<br />
echo -n "Started at: " ; date +'%D %T %Z'<br />
<br />
while [ $numticketleft -gt $untl ] ; do<br />
./rt-shredder --force --plugin "Tickets=query,Status = '$status' AND LastUpdated < '30 days ago';limit,$num"<br />
# eval $shredcmd > /dev/null<br />
sleep $wait<br />
numticketleft="`./count-tickets.sh $status | awk '{print $2}'`"<br />
done<br />
<br />
echo -n "Finished at: " ; date +'%D %T %Z'<br />
<br />
</nowiki></div>
143.54.235.94