Hi there, I'm trying to make this command run, but I'm not getting the expected results:
Code:
$ mplayer test4.mp3 | grep -e "Title:" -e "Artist" > out.txt
What happens is that the file 'out.txt' remains empty until the song finishes playing. Then it gets the expected information.
Code:
$ cat out.txt
Title: Fee
Artist: Phish
But when I *not* redirect the output:
Code:
$ 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.
Title: Fee
Artist: Phish
AO: [pulse] Failed to connect to server: Connection refused
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 ?
Thanks !
Bookmarks