I want to start a python webserver in the background and log all of its output to file.
Instead the the servers output appears in the terminal.
Even tho i guess this is pretty basic ... I've got no clue why this isnt working.
server.py (from the python doc):
import SimpleHTTPServer import SocketServer PORT = 8000 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "serving at port", PORT httpd.serve_forever()
python http_server.py > server.log &
Why does this not output to the file and how would I do it correctly?