1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| #!/bin/sh
| # ÔÆÌ¨¿ØÖÆ
| echo -en "Content-type: text/html; charset=utf-8\n\n"
| #****************************************************
|
| source ../bin/env.sh
|
| jsoner="../bin/jsoner"
|
| read data
| echo $data
| ip=`$jsoner $data ip`
| echo $ip
| #usr=`$jsoner $data usr`
| #password=`$jsoner $data password`
| #cmd=`$jsoner $data cmd`
|
| /work/data/test ip usr password cmd
|
| if [$? -eq 0]
| then
| echo "{\"code\":\"success\"}"
| else
| echo "{\"code\":\"error\"}"
| fi
|
|