spstate.cgi
来自「一个用于嵌入式的Mini Web Server.大小只有200k. 非常适合用于」· CGI 代码 · 共 18 行
CGI
18 行
#!/bin/sh
#echo "Status: 200 Ok"
LOCALIP=`cat /etc/sysconfig/network-scripts/ifcfg-eth0|sed -n 's/IPADDR=\(.*\)/\1/p'`
WEBPORT=80
echo "Content-type:text/plain"
echo ""
echo "<meta http-equiv="Refresh" content="5";URL="http://$LOCALIP:$WEBPORT/cgi-bin/g2/spstate.cgi" >"
echo "<html>"
echo "<body>"
NUMBER=`ps -ef|grep WhSignalProxy |wc -l`
if [ $NUMBER -le 1 ]
then
echo "G2 is Not running"
else
echo "G2 is Running"
fi
echo "</body>"
echo "</html>"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?