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.

1 comment:

  1. This is a helpful tip seems like! Although ofcourse cloud helps the best, but just for the sake of experiencing, i'll try this out too

    ReplyDelete