免费注册 查看新帖 |

Chinaunix

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

FTP 自动脚本 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-20 14:23 |只看该作者 |倒序浏览
linux AS 4 主机 FTP 到 AIX 主机 手工执行FTP 没有问题,但写的FTP 脚本不行。那位指点一下!\r\n\r\n脚本如下\r\n\r\n#!/bin/bsh\r\nFILE=`date \'+%y%m%d\'`\r\nexport FILE\r\nftp -i -v -n <<ff\r\nopen 10.0.66.2 \r\nuser USER1 password\r\nbinary\r\nlcd /backup\r\ncd /backup\r\nnoprompt\r\nget backup_$FILE.tar.gz\r\nbye\r\nff\r\n报错如下:\r\nConnected to 10.0.64.2.\r\n220 P520_AS FTP server (Version 4.2 Sat Feb 5 10:12:55 CST 2005) ready.\r\n502 authentication type cannot be set to GSSAPI\r\n502 authentication type cannot be set to KERBEROS_V4\r\nKERBEROS_V4 rejected as an authentication type\r\n421 Service not available, remote server has closed connection\r\nNot connected.\r\nNot connected.\r\nLocal directory now /backup/nianjin\r\nNot connected.\r\n?Invalid command\r\nNot connected.

论坛徽章:
0
2 [报告]
发表于 2009-03-23 09:18 |只看该作者
1# uibeliwei \r\n\r\n\r\n没人理?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP