Friday, April 15, 2016

Share one file

Frequently I have two computers next to each other and I want to copy a file or directory from one to the other. What do you do? Mail it to yourself, sync it via some cloud service, set up samba? No just use woof (http://www.home.unix-ag.org/simon/woof.html).

 

A tiny python server that serves one file and then shuts down as soon as the file has been downloaded. (You can also share a directory as a tar archive).

Just do:
python woof.py 'file to share'

Enter the resulting URL e.g.:
http://10.0.0.94:8080/IMG_0017.jpg
in a web browser on the other machine
and voila.

NOTE: the computers need to be on the same network. + you need to be running linux/unix with python 2.7.x.

No comments:

Post a Comment