The quickest way to launch a web server for sharing files. All you need is Python…or Ruby!

https://news.ycombinator.com/item?id=330960
by ashleyw • 18 years ago
5 3 18 years ago

Original in Python:

http://www.reddit.com/r/linux/comments/76p14/woof_simply_exchange_files/c05tpub

My Ruby version:

  alias webshare='ruby -e "require\"webrick\";w=WEBrick::HTTPServer.new(:Port=>8000,:DocumentRoot=>Dir::pwd);Signal.trap(2){w.shutdown};w.start"'
And just go to the directory you want to share, use the 'webshare' command, and tell your friend(s) to go to http://<your-IP>:8000/

Related Stories

Loading related stories...

Source preview

news.ycombinator.com