-----BEGINGP SIGNED MESSAGE----- Hash: SHA1 Pete Nesbitt wrote: > On Sun, 07 Dec 2008 11:29:41 -0800 >ete Nesbitt <pete at linux1.ca> wrote: >> <snip> >> I have it >> functioningt the cli but when I start the player (with the same cmd) >> from withinhe script, a write to the fifo file just hangs and does >> noteturn. This happens writting to it via script or at cli. Strange. >> >> I'msing this in both cli and script, with $TRACK being the path to >>he flac audio file. >> >> mplayer -slave -input file=/data/cm_temp/mplayer_cmds_fifo -quiet >> ${TRACK} &> /dev/null >> >>cho pause > /data/cm_temp/mplayer_cmds_fifo >> >> Anyway, Ieally like the FIFO idea, and will work on finding why the >>cript-started mplayer is not letting anything write to the fifo. >> > > I fixedhe hanging/non-return issue, I can tail the fifo file and it is > being written but not being pickedp by mplayer. > > It does noteem to matter what I send mplayers stdout/err to (null or >he pipe). > > So little progress anyway. Could the backgrounded while-loop that > mplayeruns in be involved? It does not seem likely, player should >till see the pipe/file. > > This ishe guts of the loop, I need to send output somewhere to get > control back when I bg it,o I think the 'done' line need to stay as > is. > > while .... > do > ... > ${MPLAYER} -slave -input file=/data/cm_temp/mplayer_cmds_fifo \ > -quiet ${TRACK} &> /dev/null > ... > done < ${PLAY_LIST} &> /dev/null & > > -Pete Trydding -nocache to the mplayer command and see if that helps with mplayer findinghe end of file better. Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -----BEGINGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkk8R/gACgkQ6w2kMH0L1dF1mgCeM84m/w5X2wkr9dVvS+DD6FTz rKwAnjEtgs04nSqhwBz47Zt7dnKSxPAS =AgJa -----ENDGP SIGNATURE-----