HBMonv2/utils/lastheard

9 lines
368 B
Plaintext
Raw Normal View History

2020-12-31 09:27:08 -05:00
#!/bin/bash
2021-05-18 11:12:40 -04:00
#
# copy this file to /etc/cron.daily/
2020-12-31 09:27:08 -05:00
mv /opt/HBMonv2/log/lastheard.log /opt/HBMonv2/log/lastheard.log.save
/usr/bin/tail -250 /opt/HBMonv2/log/lastheard.log.save > /opt/HBMonv2/log/lastheard.log
mv /opt/HBMonv2/log/lastheard.log /opt/HBMonv2/log/lastheard.log.save
/usr/bin/tail -250 /opt/HBMonv2/log/lastheard.log.save > /opt/HBMonv2/log/lastheard.log