I am having trouble getting bash to relinquish control of the pipe to stdin. I want to pass in the username and password to a program and then have that same program read from stdin rather than the pipe! This is what I have tried:
alias pandora='echo -e "$(cat ~/.musik/name)\n$(cat ~/.musik/pass | base64 --decode)" | pianobar' That's in my .bashrc. First, it cat's the username/password files and then pipes that into pianobar (pandora in the terminal). The username and password get in there, however, pianobar is expecting more input. Pianobar is asking for a number (to be able to play, for example, station 12), but when I type and hit enter, nothing happens because for some reason, it isn't expecting it to come from there.
How do I get the pipe to "relinquish" control?
Note: I have also tried
echo "$(cat ~/.musik/name) $(cat ~/.musik/pass | base64 --decode) " >>> pianobar