Code:
#!/bin/bash
#This is used for waching the vod
#tv
#author wanghao
echo "now you are in the tv "
if [ "$2" = "s" ];then
s= "-cache 8192"
else
s=""
fi
#sleep 5
case $1 in
"7")
mplayer mms://address $s
;;
"8")
mplayer mms://address $s
;;
"9")
mplayer mms://address $s
;;
"10")
mplayer mms://address $s
;;
"fhws")
mplayer mms://address $s
;;
"12")
mplayer mms://address $s
;;
"fhinfo")
mplayer mms://address $s
;;
"*")
echo "nothing"
;;
esac
but when i add run "tv 1 -s ",it always prompt "command -cache -8192 not find",where the problem is ?