That works well and fine, except it doesn't control the master volume on the Audrey.
try these ...
/data/XML/volume.shtml
----file contents ---
<html><head><title>Shell</title></head><body>
<!--#config cmdecho="OFF" -->
<!--#exec cmd="volume $QUERY_STRING &" -->
</body></html>
---- end contents ---
/kojak/CGI/volume.sh ( needs a link execv -> volume )
eg. ln -s /nto/bin/execv /kojak/CGI/volume
----file contents ---
#!/bin/ksh
integer vol=$1
# enforce playback volume is 0 -> 100
if [ $vol -lt 0 ]
then
vol=0
elif [ $vol -gt 100 ]
then
vol=100
fi
echo $vol > /config/Volume_Playback
# start script to reset the volume
startApp VolumeControl
sleep 1
shellex slay -f VolumeControl &
---- end contents ---
/kojak/startapp
----file contents ---
#!/bin/ksh
# tag the res PID and CHID to this app and start it
if [ $# -eq 1 ]
then
p=`cat /data/.rm-pid`
c=`cat /data/.rm-chid`
eval "$1 $p $c &"
else
echo "usage: startApp <application>"
fi
---- end contents ---
-pjf02536