免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1058 | 回复: 0
打印 上一主题 下一主题

FTP script [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-02-29 20:35 |只看该作者 |正序浏览
I have 2 servers running AIX on each i Have the following

rs1:/archive1#  ls -al
-rw-r-----   1 oracle   dba       104852480 Feb 19 15:37 log11740.arc
-rw-r-----   1 oracle   dba       104857088 Feb 19 15:38 log11741.arc
-rw-r-----   1 oracle   dba       104855040 Feb 19 15:39 log11742.arc
-rw-r-----   1 oracle   dba       104856576 Feb 21 15:22 log11743.arc
-rw-r-----   1 oracle   dba        23519744 Feb 23 14:32 log11744.arc
.....

rs2:/archive2#  ls -al
-rw-r-----   1 oracle   dba       104857088 Feb 25 12:59 log21271.arc
-rw-r-----   1 oracle   dba       104849408 Feb 25 15:16 log21272.arc
-rw-r-----   1 oracle   dba        47743488 Feb 25 15:31 log21273.arc
-rw-r-----   1 oracle   dba       104857088 Feb 26 12:45 log21274.arc
-rw-r-----   1 oracle   dba       104857088 Feb 26 14:41 log21275.arc
-rw-r-----   1 oracle   dba        65959936 Feb 26 16:09 log21276.arc
.....

I want to write a script file in Korn shell
using ftp to transfer a files under /archive1 & /arachive2
to another unix system FreeBSD to a folder /archive
under ftp an ftp account password.

in case the files already exist on the FTP servers
should escape the transfer,but if its not, should be transfered

Thanks
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP