1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| #!/bin/sh
| # 保存串口设备信息
| echo -en "Content-type: text/html; charset=utf-8\n\n"
| #*****************************************************
| source ../bin/env.sh
| db="../bin/db"
| jsoner="../bin/jsoner"
|
| read data
|
| ip=`$jsoner $data ip`
|
| tmp=`msg ping "$ip"`
|
| a=$(echo "$tmp" | tail -n +3)
|
| cleaned=$(echo "$a" | sed '2,2d')
|
| echo "{$cleaned}"
|
|