Last active
March 11, 2021 16:37
-
-
Save lumue/112adb3364121ccfd1bf to your computer and use it in GitHub Desktop.
tail kodi.log (or any other logfile) to syslog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| tail -f /home/osmc/.kodi/temp/kodi.log | | |
| while read -r line | |
| do | |
| logger $line | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the meantime I switched to this solution after reading that
readis not recommended in this context and pure "pipe" is performing better.tail -n0 -F /home/kodi/.kodi/temp/kodi.log | stdbuf -o0 cut -c37- | logger -t KODI