Displaying 1 result from an estimated 1 matches for "doc_archive".
2001 Apr 06
3
SFTP client script broken after OpenSSH 2.5.1p1 to 2.5.2p2-1
...ile to another
server using PK authentication. It was working until I upgraded from
OpenSSH 2.5.1p1 to 2.5.2p2-1 yesterday (on a RH Linux 6.2 system). The sftp
command is:
sftp -o "IdentityFile ~/.ssh/id_dsa" \
$PUSERNAME@$PSERVER >$TEMPFILE 2>&1 <<-!
cd $PDIR
put $DOC_ARCHIVE
ls
quit
!
Now when I run the script in test mode where it logs into an account on the
same box the script appears to ignore the current directory set by the "cd"
command and will "put" the file in the home directory of PUSERNAME. I
checked to make sure $PDIR was set and it...