2006-9-1 14:19
wlmoon
居然没有人来!!!!
cat oladb.log | while read line
do
ftp -n <<!
open IP
user user passwd
bin
cd /test/test/test
put $line
cd ..
!
done
自己解决了一半。。苦恼的是UNIX下FTP不能带路径,因为要PUT的文件不是在一个目录下。内容类似为:
/test1/test1.dmp
/test2/test3/test2.dmp
.
.
.
而UNIX下
FTP>put /test1/test1.dmp 是不可行的。谁能指点一下。
要PUT的文件总量很大。100G左右,所以先复制再FTP的方法暂时不考虑