ftp linux shell

#!/bin/bash

#ftp连接win7
username="ken"
passwd="1qaz2wsx"
svnip="192.168.2.65"

ftp -n<<!
open ${svnip}
user ${username} ${passwd}
binary
hash
ls . a
get test.txt
#cd tmp
#put fhsrc_obj2_`date  +%Y%m%d`
close
bye
!

你可能感兴趣的:(linux,shell,ftp)