read from playlist.log; avoid making the file empty
This commit is contained in:
parent
130693884b
commit
528fd7f622
1 changed files with 3 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
tail -1 /var/log/icecast2/playlist.log | cut -d \| -f 4 | perl -nle 'printf qq({ "title" : "%s" }\n), $_'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue