From 4788ff0fc2f9fabf9233d07b49a988507358c054 Mon Sep 17 00:00:00 2001 From: Waldek Date: Thu, 31 Dec 2020 15:27:08 +0100 Subject: [PATCH] Add files via upload --- utils/lastheard | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 utils/lastheard diff --git a/utils/lastheard b/utils/lastheard new file mode 100644 index 0000000..6fdc60e --- /dev/null +++ b/utils/lastheard @@ -0,0 +1,5 @@ +#!/bin/bash +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