#!/bin/bash
ftp -n<<!
open 172.20.10.242
user logftp logftp
binary
cd /data/ftp/pcidata/pcilogftp/AppFile/log
lcd /data/localacc
prompt
mget *.gz
close
bye
!
#!/bin/bash
ftp -n<<!
open 172.20.10.242
user logftp logftp
binary
cd /AppFile/log
lcd /root
prompt
put install.log
close
bye
!
#!/bin/bash
for LOGPATH in `/bin/cat /fs01/scripts/AMS_LogDir.txt`
do
if [ ! -d ${LOGPATH} ] && [ ${LOGPATH:0:1} != "#" ];then
echo "${LOGPATH} This directory does not exist.Please check it!"
exit 0
fi
done
for UP_LOGPATH in `grep -v "^#" /fs01/scripts/AMS_LogDir.txt`
do
LOGFILE=`/bin/ls -l ${UP_LOGPATH}|tail -1|awk '{print $NF}'`
ftp -A -n<<!
open x.x.x.x
user pcilogftp PciLog
binary
mkdir ${UP_LOGPATH}/52
cd ${UP_LOGPATH}/52
lcd ${UP_LOGPATH}
prompt
put ${LOGFILE}
close
bye
!
done
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有