Debian 8 + supervisor
<p>My OS is Debian 8.</p>

<p>I want to use supervisor to restart my python script:</p>

<pre><code>/home/username/prog/test.py

import time
while True:
    print('I am alive.')
    time.sleep(1)
</code></pre>

<p>My config file:</p>

<pre><code>/etc/supervisor/conf.d/testapp.conf

[program:testapp]
command=/usr/bin/python3 /home/username/prog/test.py &gt; output.txt
autostart=true
autorestart=true
stderr_logfile=/home/username/prog/long.err.log
stdout_logfile=/home/username/prog/long.out.log
</code></pre>

<p>But output.txt is empty..</p>

<p>All permisions is ok.</p>