Step 4: Setting up the fifo
To test that everything is working correctly, restart Pianobar. In another terminal window, enter:
echo 'n' >> /home/pi/.config/pianobar/ctl
This should change the song being played by Pianobar. If so, we are now able to control it from another terminal (and by extension, a BASH script). All of the commands from Pianobar can work this way - and some interesting combinations can be made. Try “))))))” to increase the volume a lot at one time, or check out the difference between “s” and “s2”. Experimenting with this now will help our scripts make sense later.