#!/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
