Malabarba / control-pianobar

Pair of scripts that interact with pianobar entirely through notification bubbles and hotkeys. No terminal necessary.
http://malabarba.github.io/control-pianobar/
35 stars 13 forks source link

Syntax error in pianobar-notify #5

Closed tully32 closed 9 years ago

tully32 commented 9 years ago

When attempting to run pianobar-notify.sh I receive this error.

archie@arch pianobar]$ sh pianobar-notify.sh pianobar-notify.sh: line 81: syntax error near unexpected token <' pianobar-notify.sh: line 81:done < <(grep -e '^(title|artist|album|stationName|songStationName|pRet|pRetStr|wRet|wRetStr|songDuration|songPlayed|rating|coverArt|stationCount|station[0-9]+)=' /dev/stdin) # don't overwrite $1...' [archie@arch pianobar]$ ls albumart config control-pianobar.sh ctl isplaying log pandora.jpg pianobar-notify.sh README.md state

"control-pianobar.sh p" will start pianobar and run if I have autostart_station in my conf otherwise it just freezes and the gtk window to show stations never comes up. I see the initial notify-send stating "Starting Pianobar" but nothing after. It also never creates any of the files required by pianobar-notify.

Malabarba commented 9 years ago

Have you tried running it with bash instead of sh?

tully32 commented 9 years ago

My mistake. I forgot to put the event_command in my config file. Everything is working now. Thank you so much for creating this.

Malabarba commented 9 years ago

No problem. Glad it's solved. :-)