Hi there, I'm trying to make this command run, but I'm not getting the expected results:
What happens is that the file 'out.txt' remains empty until the song finishes playing. Then it gets the expected information.
$ mplayer test4.mp3 | grep -e "Title:" -e "Artist" > out.txt
But when I *not* redirect the output:
$ cat out.txt
The information is shown immediately, can someone help me out to figure out what am I doing wrong? How could I get the information on the file immediately ?
$ mplayer test4.mp3 | grep -e "Title:" -e "Artist"
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
AO: [pulse] Failed to connect to server: Connection refused