redirecting python -m CGIHTTPserver 8080 to /dev/null
<p>The standard > /dev/null and >> /dev/null don't work when a computer sends a GET to the task.
eg:
pi@raspberrypi:~/server $ python -m CGIHTTPServer 8080 &amp;</p>

<p>results in </p>

<p>192.168.0.109 - - [26/Sep/2016 23:14:48] "GET /cgi-bin/DS1822remote.py HTTP/1.1" 200 -</p>

<p>As I've put the python app into the background with the '&amp;' I'd like to also see the GET requests vanish.</p>

<p>How do I do this or is it even possible?</p>

<p>You need to redirect stderr, not stdout; best to redirect both with:</p>

<pre><code> python -m CGIHTTPServer 8080 &gt; /dev/null 2&gt;&amp;1 &amp;
</code></pre>

<p>If you still want to expose stdout (to see the start-up message, for example), use:</p>

<pre><code> python -m CGIHTTPServer 8080 2&gt; /dev/null &amp;
</code></pre>

python cgihttpserver