1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# 报警记录查询
#
echo -en "Content-type: text/html; charset=utf-8\n\n"
#*****************************************************
source ../bin/env.sh
db="../bin/db"
 
read content
 
result=`$db query_warn "$content"`
if [ $? -eq 0 ]
then
    echo $result 
else
    echo "[]"
fi
 
#echo "QUERY_STRING: '$REQUEST_METHOD' " > ./log
#echo $content >> log
#echo "*result***********************************************" >> log
#echo $result >> log