Difference between revisions of "Sharing files with Python"
Views
Actions
Namespaces
Variants
Tools
→Using it
imported>Cscs |
imported>Viking60 |
||
Line 95: | Line 95: | ||
In this case the server will be on port 9000. | In this case the server will be on port 9000. | ||
Python is often updated so if you get any errors running the command above you can alternatively try: | |||
python -c 'from twisted.web.server import Site; from twisted.web.static import File; from twisted.internet import reactor; reactor.listenTCP(8000, Site(File("."))); reactor.run()' | |||
Here the server will be on port 8000 you can change it to your liking. | |||
===Stopping the server=== | ===Stopping the server=== |