我有Host Concurrent Program xxx.prog文件,并且我也创建了sofk链接。 程序运行正常,但是当FTP失败时,我需要程序错误,但随后无法正常运行。
cd $FILE_DIR
ftp -n $REMOTE <<_FTP
quote USER $USER
quote PASS $PASSWORD
cd $TARGET_PATH
prompt off#<=ADDed
mput $FILE_NAME
bye
_FTP
if [ $?-ne 0 ]
then
exit 1 'Error during FTP Process'
else
echo $FILE_NAME ftp to $REMOTE
fi
exit