這期內(nèi)容當(dāng)中小編將會給大家?guī)碛嘘P(guān)如何進行ftp 和 scp的記錄,文章內(nèi)容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
----------------ftp-get.sh---------------------
#!/bin/ksh
ftp -v -i -n 192.168.1.35 << !
user hello pass
bin
prompt off
cd /home/hello/txt
lcd /home/Cent/
get $1
#mget *
close
bye
!
----------------ftp-put.sh---------------------
#!/bin/ksh
ftp -v -i -n 192.168.1.35 << !
user hello pass
bin
hash
cd /home/hello/txt
lcd /home/Cent/
mput *
close
bye
!
----------------scp-get.sh---------------------
scp hello@192.168.1.35:/home/hello/txt/$1 ~/scpfiles/
----------------scp-put.sh---------------------
scp ~/dstFile/* \
hello@192.168.1.35:/home/hello/txt/
上述就是小編為大家分享的如何進行ftp 和 scp的記錄了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道。