Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Help me here.

I once used a utility (written in Python, I think), that is for sharing files across machines using HTTP.

It creates a tiny web server + URL which is good for one single GET request only, then it shuts down.

This allows you to GET a file from another machine using HTTP.

Please can anyone tell me what this command is?

share|improve this question
    
I vaguely remember reading about something like this. But for the life of me, I cannot remember the name of the program. –  Zoredache Jan 20 '10 at 22:21
add comment

4 Answers

up vote 10 down vote accepted

Are you talking about woof?

share|improve this answer
    
You sir, are the winner. Thanks very much!!!!! –  Rich Jan 20 '10 at 22:30
    
Rock on. Cheers :) –  squillman Jan 20 '10 at 22:31
    
home.unix-ag.org/simon/woof.html –  Sunny Jan 20 '10 at 22:31
add comment

Actually you don't need anything except Python to do that.

cd dir/to/share
python -m SimpleHTTPServer

This way you can access dir/to/share through http://HOSTNAME/. To stop sharing just CTRL+C.

share|improve this answer
    
SimpleHTTPServer's default port is 8000, so I guess it would be HOSTNAME:8000 . Simple and very useful ! –  Falken Jan 21 '10 at 10:54
1  
Yes, that is right. You can also specify a different port as the last argument, eg. python -m SimpleHTTPServer 7999 will listen on port 7999 –  rocku Jan 21 '10 at 11:09
    
very neat! thanks –  Rich Feb 4 '10 at 22:01
add comment

I would still like to show you this project called quickserve. It seems to improve upon the ideas of woof. from the CLI you can have it share a file or directory, generate a random username/password, http server and URL. You can even set the '-u' flag and enable an upload to your web server. Its only make depend is python.

share|improve this answer
add comment

And if you don't have Python? Use NetCat.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.