myradio.sh
2017-05-30 17:49![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Вот такой скрипт получился.


#!/bin/bash # # Start radio broadcast from one of listed stations. # declare -a list=( http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p "BBC Radio One" http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-einws "BBC World Service English News" http://50.31.186.115:80/kqedradio "KQED Public Radio" http://16643.live.streamtheworld.com:80/KDFCFM_SC "KDFC Classical" http://19473.live.streamtheworld.com:80/KFOGFM_SC "KFOG" http://amberradio.org:8000/mp3 "Amber Radio" http://i-radio.info:8000/radio "Радио Аквариум" http://online-radioroks.tavrmedia.ua:8000/RadioROKS "Радио РОКС" http://109.68.190.202:8131/stream "Радио Сябры" http://ant-waw-01.cdn.eurozet.pl:8602/ "Antyradio Warszawa" ) exec 3>&1 url=`${DIALOG:-dialog} 2>&1 1>&3 \ --no-tags \ --title " Radio " \ --menu "Choose Station:" 0 40 11 "${list[@]}"` killall mpg123 2>/dev/null && sleep 1 if [ -n "$url" ]; then mpg123 "$url" & fi
no subject
Date: 2017-05-31 12:48 (UTC)no subject
Date: 2017-05-31 14:35 (UTC)no subject
Date: 2017-06-01 00:27 (UTC)no subject
Date: 2017-05-31 22:31 (UTC)no subject
Date: 2017-05-31 22:56 (UTC)http://rpmfind.net/linux/RPM/centos/7.3.1611/x86_64/Packages/dialog-1.2-4.20130523.el7.x86_64.html