Playing music (was: Re: [dev] mret)

From: Bjartur Thorlacius <svartman95_AT_gmail.com>
Date: Thu, 26 May 2011 16:11:01 +0000

On 5/26/11, hiro <23hiro_AT_googlemail.com> wrote:
> mplayer has the -quiet flag at least, I'm quite sure you can disable
> it's interactive features, too. I just don't want to read the man
> "page".
This. I'm on Windows ATM, but if I recall correctly:
xargs -n0 mplayer -slave -quiet &>/dev/null
Where -slave tells mplayer to not take over the shell. Buffer by line,
and detach and reattach as needed. And avoid spaces in filenames, as
xargs can't handle them, unless you do:
tr $'\n' '' |xargs -n0 mplayer -slave -quiet &>/dev/null
No idea wheather it works or not.
Assuming /n/songs is buffered linewise you may also consider:
xargs -n0 sh -c 'mplayer -slave >/n/nowplaying </n/songs'
Received on Thu May 26 2011 - 18:11:01 CEST

This archive was generated by hypermail 2.2.0 : Thu May 26 2011 - 18:12:03 CEST