vak: (Default)
[personal profile] vak
Вот такой скрипт получился.

# Start radio broadcast from one of listed stations.
declare -a list=(
    "BBC Radio One"
    "BBC World Service English News"
    "KQED Public Radio"
    "KDFC Classical"
    "Amber Radio"
    "Радио Аквариум"
    "Радио РОКС"
    "Радио Сябры"
    "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" &
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
Account name:
If you don't have an account you can create one now.
HTML doesn't work in the subject.


If you are unable to use this captcha for any reason, please contact us by email at

Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.