brainwagon "There is much pleasure in useless knowledge." — Bertrand Russell

18Mar/04Off

One liner…

Ever wish you had a simple webserver on a machine? You can do it in a single
line with Python.

python -c "import SimpleHTTPServer ; SimpleHTTPServer.test()"

This will start a webserver on port 8000 in the current directory, and allow you to serve content for any files in that directory.

Filed under: Python Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.