shell ftp只能发送2个文件
时间:2011-05-06
来源:互联网
/usr/bin/ftp和/usr/kerberos/bin/ftp有什么不同,如何使用/usr/bin/ftp?
脚本:
funciton ftpexport {
if [ $# != 5 ]
then
_Msg "$0 参数错误.."|tee -a $logfile
return -1
fi
localFilePath=$1
netFilePath=$2
localFile=$3
ftpenv=$4
echo "ftpenv is =====$ftpenv"
echo "localFile ======$localFile"
echo "netFilePath =======$netFilePath"
echo "localFilePath ========${localFilePath}"
okfile=$5
/usr/bin/ftp -i -n ${ip}<<-EOF
user $username $password
bi
cd $netFilePath
prompt
mput $localFile
close
bye
EOF
}
这5个参数绝对没有问题,因为在AIX上完全可以传送过去,但移植到 linux上就出现了问题,一次只发送了2个文件
脚本:
funciton ftpexport {
if [ $# != 5 ]
then
_Msg "$0 参数错误.."|tee -a $logfile
return -1
fi
localFilePath=$1
netFilePath=$2
localFile=$3
ftpenv=$4
echo "ftpenv is =====$ftpenv"
echo "localFile ======$localFile"
echo "netFilePath =======$netFilePath"
echo "localFilePath ========${localFilePath}"
okfile=$5
/usr/bin/ftp -i -n ${ip}<<-EOF
user $username $password
bi
cd $netFilePath
prompt
mput $localFile
close
bye
EOF
}
这5个参数绝对没有问题,因为在AIX上完全可以传送过去,但移植到 linux上就出现了问题,一次只发送了2个文件
作者: iori20099 发布时间: 2011-05-06
$localFile 的值是什么?
作者: justkk 发布时间: 2011-05-06
*.txt
作者: iori20099 发布时间: 2011-05-06
空间完全够,权限也有
日志文件:
20110506 17:37:39 test.sh Messages: 开始数据传输
Interactive mode on.
mput 1.txt? mput 2.txt? mput 3.txt? mput 4.txt? mput 5.txt? mput 6.txt? mput 7.txt?
20110506 17:37:39 test.sh Messages: 程序运行完成退出?
日志文件:
20110506 17:37:39 test.sh Messages: 开始数据传输
Interactive mode on.
mput 1.txt? mput 2.txt? mput 3.txt? mput 4.txt? mput 5.txt? mput 6.txt? mput 7.txt?
20110506 17:37:39 test.sh Messages: 程序运行完成退出?
作者: iori20099 发布时间: 2011-05-06
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28