#/bin/bash
#stop sms server
smspid=`ps -aux |grep java |grep jPortMap |awk '{print $2}'`
if [ "$smspid" != "" ] ; then
echo "pid is $smspid"
result= `kill -9 $smspid`
echo stop OK $result
exit 1
else echo jPortMap Not Running!!!
fi
#/bin/bash
#start jPortMap
#java -jar jPortMap.jar &
java -jar jPortMap.jar
$last -n 5 //仅显示5行