1 # $OpenBSD: transfer.sh,v 1.1 2002/03/27 00:03:37 markus Exp $
2 # Placed in the Public Domain.
10 verbose
"$tid: proto $p"
12 ${SSH} -n -q -$p -F $OBJ/ssh_proxy somehost cat ${DATA} > ${COPY}
14 fail
"ssh cat $DATA failed"
16 cmp ${DATA} ${COPY} || fail
"corrupted copy"
18 for s
in 10 100 1k
32k
64k
128k
256k
; do
19 trace
"proto $p dd-size ${s}"
21 dd if=$DATA obs
=${s} 2> /dev
/null | \
22 ${SSH} -q -$p -F $OBJ/ssh_proxy somehost
"cat > ${COPY}"
24 fail
"ssh cat $DATA failed"
26 cmp $DATA ${COPY} || fail
"corrupted copy"