23,121
社区成员
发帖
与我相关
我的任务
分享
#!/bin/sh
type=0
period=1
case $QUERY_STRING in
*ping*)
type=0
;;
*counter*)
type=1
;;
*stop*)
type=2
;;
esac
case $QUERY_STRING in
*slow*)
period=0.25
;;
*normal*)
period=0.125
;;
*fast*)
period=0.0625
;;
esac
/bin/echo $type $period > /tmp/led-control
/bin/echo $type $period > /tmp/123.txt
echo "Content-type: text/html; charset=gb2312"
echo
/bin/cat led-result.template
echo $type $period
exit 0