[whaley@closer ~/tmp]The above will start an http server that allows directory browsing for only the current working directory you started python in (in this case, ~/tmp). Just have your colleague go to http://your.ip.add.ress:8000/ and you have instant and easy read-only file sharing from your machine.
> python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
New Location
My website has moved to http://www.jasonwhaley.com. Please visit there for the latest and only remain here for legacy content.
Thursday, September 10, 2009
Using Python to quickly share files over HTTP
Have you ever needed to share something quickly with someone on the same network and tussled with your OS's built in sharing mechanism more than you needed? If so, then just use python next time:
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment