i am searching for a solution to the following problem:
i want a bash script to automatically communicat with the telnet server. i want it to scan several folders for files and if there are any to request them.
Code: Select all
find $folder -maxdepth 1 \( -iname '*.mp3' -o -name '*.ogg' \) -exec echo "scheduler.push {} | telnet localhost 1234" \;
Code: Select all
#!/bin/bash
(echo "telnet command"
echo "another telnet command"
echo "yet another telnet command") \
| telnet localhost 1234
thanks for your support,
akraix