Create lastheard.sh

This commit is contained in:
Waldek 2019-06-26 19:59:38 +02:00 committed by GitHub
parent ac862e2386
commit a7991a6701
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.sh 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