|
Lines 52-62
echo "get ${DATA} ${COPY}" | \
Link Here
|
| 52 |
test -f ${COPY} || fail "sftp: failed copy ${DATA}" |
52 |
test -f ${COPY} || fail "sftp: failed copy ${DATA}" |
| 53 |
cmp ${DATA} ${COPY} || fail "sftp: corrupted copy of ${DATA}" |
53 |
cmp ${DATA} ${COPY} || fail "sftp: corrupted copy of ${DATA}" |
| 54 |
|
54 |
|
|
|
55 |
set -x |
| 55 |
rm -f ${COPY} |
56 |
rm -f ${COPY} |
| 56 |
trace "scp transfer over multiplexed connection and check result" |
57 |
trace "scp transfer over multiplexed connection and check result" |
| 57 |
${SCP} -S ${SSH} -oControlPath=$CTL otherhost:${DATA} ${COPY} >/dev/null 2>&1 |
58 |
${SCP} -S ${SSH} -oControlPath=$CTL otherhost:${DATA} ${COPY} |
| 58 |
test -f ${COPY} || fail "scp: failed copy ${DATA}" |
59 |
test -f ${COPY} || fail "scp: failed copy ${DATA}" |
| 59 |
cmp ${DATA} ${COPY} || fail "scp: corrupted copy of ${DATA}" |
60 |
cmp ${DATA} ${COPY} || fail "scp: corrupted copy of ${DATA}" |
|
|
61 |
set +x |
| 60 |
|
62 |
|
| 61 |
rm -f ${COPY} |
63 |
rm -f ${COPY} |
| 62 |
|
64 |
|