mplayer.sh looks like this.
#!/bin/sh
scriptpid=$$
apppid=/tmp/.alienbbc-app.$$.pid
app=mplayer
if [ -x /usr/local/bin/$app ] ; then
app=/usr/local/bin/$app
fi
# For mplayer pre6 comment out following line and uncomment line after
if [ -e "${10}" ] ; then
#if [ -e "${12}" ] || [ -e "${13}" ] ; 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
mplayer.sh 77%#!/bin/sh
scriptpid=$$
apppid=/tmp/.alienbbc-app.$$.pid
app=mplayer
if [ -x /usr/local/bin/$app ] ; then
app=/usr/local/bin/$app
fi
# For mplayer pre6 comment out following line and uncomment line after
if [ -e "${10}" ] ; then
#if [ -e "${12}" ] || [ -e "${13}" ] ; 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
3. What user does slimserver run under (e.g. check using ps ) as that
is the username that lame, mplayer and mplayer.sh should be owned to
guarantee access by slimserver.
Sorry, but I'm having trouble with this. How do I do that ? I tried
typing ps, and nothing much happened.
Is there a way to run slimserver from the terminal ?
--
grifforama
------------------------------------------------------------------------
grifforama's Profile: http://forums.slimdevices.com/member.php?userid=11239
View this thread: http://forums.slimdevices.com/showthread.php?t=34847
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins