From a7991a67010b30da0bd3016ba45f4de17b305b79 Mon Sep 17 00:00:00 2001 From: Waldek Date: Wed, 26 Jun 2019 19:59:38 +0200 Subject: [PATCH] Create lastheard.sh --- utils/lastheard.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 utils/lastheard.sh diff --git a/utils/lastheard.sh b/utils/lastheard.sh new file mode 100644 index 0000000..fcf19f3 --- /dev/null +++ b/utils/lastheard.sh @@ -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