Lines Matching full:scp

1 #	$OpenBSD: scp.sh,v 1.19 2023/09/08 05:50:57 djm Exp $
4 tid="scp"
16 if ! diff -N ${SRC}/scp.sh ${SRC}/scp.sh 2>/dev/null; then
23 cp ${SRC}/scp-ssh-wrapper.sh ${OBJ}/scp-ssh-wrapper.scp
24 chmod 755 ${OBJ}/scp-ssh-wrapper.scp
25 export SCP # used in scp-ssh-wrapper.scp
44 for mode in scp sftp ; do
46 if test $mode = scp ; then
47 scpopts="-O -q -S ${OBJ}/scp-ssh-wrapper.scp"
54 $SCP $scpopts ${DATA} ${COPY} || fail "copy failed"
59 $SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
64 $SCP $scpopts somehost:${DATA} ${COPY} || fail "copy failed"
70 $SCP $scpopts ${COPY} somehost:${COPY} || fail "copy failed"
76 $SCP $scpopts somehost:${COPY} ${COPY} || fail "copy failed"
82 $SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
89 $SCP $scpopts somehost:${DATA} ${COPY} || fail "copy failed"
95 $SCP $scpopts ${COPY} somehost:${DIR} || fail "copy failed"
101 $SCP $scpopts ${COPY} ${DIR} || fail "copy failed"
107 $SCP $scpopts somehost:${COPY} ${DIR} || fail "copy failed"
112 $SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed"
119 $SCP $scpopts -r ${DIR} ${DIR2} || fail "copy failed"
126 $SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed"
131 $SCP $scpopts ${DATA} somehost:${COPY3} || fail "copy failed"
136 $SCP $scpopts somehost:${COPY3} ${COPY2} || fail "copy failed"
144 $SCP $scpopts -r ${DIR} somehost:${DIR3} || fail "copy failed"
150 $SCP $scpopts -r somehost:${DIR3} ${DIR2} || fail "copy failed"
157 $SCP $scpopts *metachar* ${DIR2} 2>/dev/null; \
161 verbose "$tag: skipped file after scp -p with failed chown+utimes"
168 $SCP -p $scpopts somehost:${DIR}/\* ${DIR2} >/dev/null 2>&1
178 $SCP $scpopts somehost:${DATA} ${DIR} >/dev/null 2>/dev/null
183 $SCP -r $scpopts somehost:${DATA} ${DIR2} >/dev/null 2>/dev/null
187 $SCP -pr $scpopts somehost:${DATA} ${DIR2} >/dev/null 2>/dev/null
191 $SCP $scpopts somehost:${DATA} ${DIR2} >/dev/null 2>/dev/null
200 $SCP $scpopts ${DATA} ${COPY} ${COPY2}
205 rm -f ${OBJ}/scp-ssh-wrapper.scp