the it-madness

Python Webserver mit einer Zeile Code

by on Jun.07, 2010, under Technik

Echt praktisch, hab ich grad gebraucht, und kann ich mir sicher eh nicht merken:

python -m CGIHTTPServer #(für Python ab Version 2.4)
python -c “from SimpleHTTPServer import test; test()” #(vor V2.3)

Listet alle Dateien im aktuellen Verzeichnis auf, der Webserver ist unter IP:8000 erreichbar.

:

2 Comments for this entry

Leave a Reply

Spam protection by WP Captcha-Free

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...