天天看点

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

!