Normally one would use sexsend for this task. But this is not a good idea if the sexserver is behind a slow link.
woos is peer-to-peer and does not need a server.
usage: ... | woos [-v] [-p PORT] [-f FILENAME] # any data coming from STDIN usage: woos [-v] [-p PORT] FILE # woof mode: offer a file usage: woos [-v] [-p PORT] FILES-OR-DIRECTORIES... # will be sent as .tar.gz usage: woos [-v] [-p PORT] -z FILES-OR-DIRECTORIES... # will be sent as .zip usage: woos [-v] [-p PORT] [-f FILENAME] -U # provide upload form usage: woos [-v] [-p PORT] -g SERVER # get stream (client mode)For example you have two notebooks in a (Wi-Fi) LAN and you want to exchange some files, then use:
woos README /opt/tcpbm /usr/local/bin
(will display download URL)
wget -O- http://192.168.2.112:9999/ | tar xvzf -
you can also use woos in client mode:
woos -g 112 # last IP octett is sufficent, will unpack automatically
If you need encryption, then you could use:
tar czf - README /opt/tcpbm /usr/local/bin | openssl bf -e -k wambam | woos
# will display download URL
wget -O- http://192.168.2.112:9999/ | openssl bf -d -k wambam | tar xvzf -
If you want to receive a file, then use woos in upload mode:
woos -U
# will display upload URL
$webbrowser http://192.168.2.112:9999/
Of course, on notebook 1 port 9999 must be open and not firewalled!