remove linx-watch-top.sh

deleted:    install_shell/linx-watch-top.sh
	modified:   install_shell/other.sh

Signed-off-by: Qin, Bo <bqin@linx-info.com>
This commit is contained in:
Qin, Bo
2014-04-22 15:26:59 +08:00
parent 60cec884db
commit f9f4545b3e
2 changed files with 0 additions and 20 deletions

View File

@@ -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

View File

@@ -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