回文章列表
作者tank.bbs@bbs.et.ntust.edu.tw (tank), 信區: unix
標題Re: 請問在 solaris如何寫 ftp shell script ?
時間台灣科大電子BBS (Wed Mar 2 20:32:50 2005)
轉信站: GIBBS!news2.ncku!ccnews.ncku!news.ccns.ncku!news.mksh.phc!news.nsysu!ne
Origin: bbs.et.ntust.edu.tw

※ 引述《spiraea.bbs@bbs.csie.nctu.edu.tw (浮雲遊子)》之銘言:
> ※ 引述《fam.bbs@bbs.cis.nctu.edu.tw (無敵鐵金剛指揮艇組合)》之銘言:
> >    就是 username, 跟 password, 還有一些輸入指令如何寫,
> >    比如:
> >       export/home/mytest> ftp 10.10.10.10
> >       username: mytest
> >       password: mytest
> >       ftp> cd test
> >       OK
> >       ftp> get test.txt
> >       .....
> >      上面例子如何寫成 script file?  thx......
> man netrc 或用wget

ftp -n $i << !  > /dev/null 2> /dev/null
user mytest mytest
cd test
get test.txt
bye
!
done

或是

ncftpget
ncftpput
--
※ Origin: 台灣科大電子站 <bbs.et.ntust.edu.tw> 
◆ From: 61.70.220.90
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻