No need to rename all the files - the question is to find out whiuch
argument to mplayer.sh has the file name and to use it in the *if [ -e
"${12}" ]* test since 12 is not right on your system for whatever
reason.
If you add to mplayer.sh the "echo Args" line as follows - each time
mplayer.sh is called a line is writtent to the file /tmp/mplayer.log
and you will be able to see which argument is the file name.
Code:
--------------------
echo Args 9=$9 10="${10}" 11=${11} 12="${12}" 13="${13}" >>/tmp/mplayer.log
if [ -e "${12}" ] ; 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
--------------------
play a few files and an BBC stream as well and then post the contents
of mplayer.log.
--
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=48840
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix