diff --git a/utils/lastheard b/utils/lastheard index 6dfbc9f..fc960b8 100644 --- a/utils/lastheard +++ b/utils/lastheard @@ -1,5 +1,5 @@ #!/bin/bash -mv /opt/HBmonitor/lastheard.log /opt/HBmonitor/lastheard.log.save -/usr/bin/tail -150 /opt/HBmonitor/lastheard.log.save > /opt/HBmonitor/lastheard.log -mv /opt/HBmonitor/lastheard.log /opt/HBmonitor/lastheard.log.save -/usr/bin/tail -150 /opt/HBmonitor/lastheard.log.save > /opt/HBmonitor/lastheard.log +mv /opt/HBmonitor/log/lastheard.log /opt/HBmonitor/log/lastheard.log.save +/usr/bin/tail -150 /opt/HBmonitor/log/lastheard.log.save > /opt/HBmonitor/log/lastheard.log +mv /opt/HBmonitor/log/lastheard.log /opt/HBmonitor/log/lastheard.log.save +/usr/bin/tail -150 /opt/HBmonitor/log/lastheard.log.save > /opt/HBmonitor/log/lastheard.log