radio-scripts/telnetmetainject
2021-01-31 13:31:54 +01:00

13 lines
250 B
Bash
Executable File

#!/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