shell ftp只能发送2个文件

/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个文件

作者: 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: 程序运行完成退出?

作者: iori20099   发布时间: 2011-05-06