Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in pianobar-notify #5

Closed
tully32 opened this issue Feb 8, 2015 · 3 comments
Closed

Syntax error in pianobar-notify #5

tully32 opened this issue Feb 8, 2015 · 3 comments

Comments

@tully32
Copy link

tully32 commented Feb 8, 2015

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
Copy link
Owner

Have you tried running it with bash instead of sh?

@tully32
Copy link
Author

tully32 commented Feb 8, 2015

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants