Create lastheard

This commit is contained in:
Waldek 2019-08-19 12:51:37 +02:00 committed by GitHub
parent 620e52559c
commit 7a6fa68302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

5
utils/lastheard Normal file
View File

@ -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