sh

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

posted @ 2013-10-24 14:28  呵呵··  阅读(327)  评论(0编辑  收藏  举报