当前位置: 技术问答>linux和unix
Linux下ftp命令出错
来源: 互联网 发布时间:2017-04-12
本文导语: #! /usr/bin/ksh #Test FTP dateVar=`date '+%Y%m%d'` FILE_PATH=/inc_report/inc/sysadm/clist; export FILE_PATH OTHER_FILE_NAME=CALL_OTHER_LIST_${dateVar}; export OTHER_FILE_NAME if [ ! -r $FILE_PATH/$OTHER_FILE_NAME ]; then echo "${FILE_PATH}/${OTHER_FILE_...
#! /usr/bin/ksh
#Test FTP
dateVar=`date '+%Y%m%d'`
FILE_PATH=/inc_report/inc/sysadm/clist; export FILE_PATH
OTHER_FILE_NAME=CALL_OTHER_LIST_${dateVar}; export OTHER_FILE_NAME
if [ ! -r $FILE_PATH/$OTHER_FILE_NAME ]; then
echo "${FILE_PATH}/${OTHER_FILE_NAME} Can't copy to 192.168.40.44/u01"
else
echo "begin................."
ftp -n 192.168.40.44
#Test FTP
dateVar=`date '+%Y%m%d'`
FILE_PATH=/inc_report/inc/sysadm/clist; export FILE_PATH
OTHER_FILE_NAME=CALL_OTHER_LIST_${dateVar}; export OTHER_FILE_NAME
if [ ! -r $FILE_PATH/$OTHER_FILE_NAME ]; then
echo "${FILE_PATH}/${OTHER_FILE_NAME} Can't copy to 192.168.40.44/u01"
else
echo "begin................."
ftp -n 192.168.40.44