wok-6.x view rsync/stuff/usr/bin/rsync-unssh @ rev 18794

emacs: improve site-start.el
author Lucas Levrel <llevrel@yahoo.fr>
date Thu Jan 07 22:13:24 2016 +0100 (2016-01-07)
parents
children 58fd2812d1bf
line source
1 #!/bin/sh
2 # usage: rsync -e /usr/bin/rsync-unssh ...
4 port=60873 # any free tcp port > 1024
6 login=$2
7 peer=$3
8 shift 3
9 ssh $login@$peer "nc -l -p $port -e $@" < /dev/tty &
10 sleep 5
11 nc $peer $port