Well, that was an interesting suggestion. Thanks for your help,
Triode!
First, using bash made no difference.
Second, I discovered no error messages when I switched to kill XXX.
This surprised me so I went back to /tmp and found that I was confused
earlier -- the /tmp/.alienbbc-app.$$.pid files were not being cleared
between reboots. Clearly, for some reason, the wait is never returning
in mplayer.sh.
For reference, below is the mplayer.sh I am using (I was using the one
for the Linux distribution since there is no mplayer.sh indicated for
MacOS. Any bright ideas of how to solve this conundrum?
Thanks!
#!/bin/bash
app=mplayer
scriptpid=$$
apppid=/tmp/.alienbbc-app.$$.pid
# For mplayer pre7 and later comment out following line and uncomment
line after
if [ -e "${12}" ] || [ -e "${13}" ] ; then
# if [ -e "${10}" ] ; then
echo Local File: Launching $app $1 $2 $3 $4 $5 $6 $7 $8 $9 "${10}"
${11} "${12}" "${13}" >&2
$app $1 $2 $3 $4 $5 $6 $7 $8 $9 "${10}" ${11} "${12}" "${13}" 3>&1
1>&2
exit
fi
echo Streaming: Launching $app $* >&2
(
$app $* 3>&1 1>&2 &
echo $! > $apppid
wait
rm -f $apppid
kill $scriptpid 2> /dev/null
) < /dev/null &
cat > /dev/null
if [ -s $apppid ] ; then
kill `cat $apppid` 2> /dev/null
fi
--
tygar
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins