From f9f4545b3e715916d202c1c6d2d0ad86db0acbc8 Mon Sep 17 00:00:00 2001 From: "Qin, Bo" Date: Tue, 22 Apr 2014 15:26:59 +0800 Subject: [PATCH] remove linx-watch-top.sh deleted: install_shell/linx-watch-top.sh modified: install_shell/other.sh Signed-off-by: Qin, Bo --- install_shell/linx-watch-top.sh | 17 ----------------- install_shell/other.sh | 3 --- 2 files changed, 20 deletions(-) delete mode 100644 install_shell/linx-watch-top.sh diff --git a/install_shell/linx-watch-top.sh b/install_shell/linx-watch-top.sh deleted file mode 100644 index 3036fa7..0000000 --- a/install_shell/linx-watch-top.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -#get current date -DATE=$(date +%Y%m%d) - -#7 days a week,0-6,cycle 7 -for i in {0..6} -do - #24 hours a day,Every cycle is 3 hours,cycle 8 - for j in {1..8} - do - #run 3 hours - echo $DATE > /var/log/linx-watch-top-${i}-${j}.log - top -b -n 1080 -d 10 >> /var/log/linx-watch-top-${i}-${j}.log - sleep 2 - done -done diff --git a/install_shell/other.sh b/install_shell/other.sh index 7af5394..f650228 100755 --- a/install_shell/other.sh +++ b/install_shell/other.sh @@ -13,11 +13,8 @@ sed -i "s#d5000#${USER_NAME}#g" /etc/crontab chown sysadmin.sysadmin /etc/crontab chmod 644 /etc/crontab cp xrm.sh /usr/sbin -cp linx-watch-top.sh /usr/sbin chown root.root /usr/sbin/xrm.sh -chown root.root /usr/sbin/linx-watch-top.sh chmod 755 /usr/sbin/xrm.sh -chmod 755 /usr/sbin/linx-watch-top.sh if [ -f /var/spool/cron/crontabs/root ];then rm /var/spool/cron/crontabs/root fi