From 7a6fa68302643b1161618631c33fac80e79ab217 Mon Sep 17 00:00:00 2001 From: Waldek Date: Mon, 19 Aug 2019 12:51:37 +0200 Subject: [PATCH] Create lastheard --- 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..fcf19f3 --- /dev/null +++ b/utils/lastheard @@ -0,0 +1,5 @@ +#!/bin/bash +mv /var/www/html/lastheard.log /var/www/html/lastheard.log.save +/usr/bin/tail -550 /var/www/html/lastheard.log.save > /var/www/html/lastheard.log +mv /var/www/html/lastheard.log /var/www/html/lastheard.log.save +/usr/bin/tail -550 /var/www/html/lastheard.log.save > /var/www/html/lastheard.log