Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

Exim remove all messages from the queue

1
2
3
4
5
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash

# OR 

exim -bp | exiqgrep -i | xargs exim -Mrm
https://snipt.net/embed/324ff771fa41aa76b8d5e9adb308ea00/
https://snipt.net/raw/324ff771fa41aa76b8d5e9adb308ea00/
324ff771fa41aa76b8d5e9adb308ea00
bash
Bash
5
2016-12-10T18:51:31
True
False
False
/api/public/snipt/25061/
exim-remove-all-messages-from-the-queue
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>exim -bp <span class="p">|</span> awk <span class="s1">&#39;/^ *[0-9]+[mhd]/{print &quot;exim -Mrm &quot; $3}&#39;</span> <span class="p">|</span> bash </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1"># OR </span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>exim -bp <span class="p">|</span> exiqgrep -i <span class="p">|</span> xargs exim -Mrm </span></pre></div> </td></tr></table>
exim, linux, queue
Copyrighted, illegal, or inappropriate content? Email [email protected].