radio-scripts/telnetmetainject

13 lines
250 B
Plaintext
Raw Permalink Normal View History

2021-01-31 13:31:54 +01:00
#!/bin/sh
# script to inject any text into icy_metadata of icecast
# using telnet and liquidsoap.
IFS=$"\n"
while read -r line;
do
echo "$line"
(sleep 2; echo "metadata.update song=$line";echo quit) | \
nc localhost 1234;
sleep 30;
done