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行

上一篇:批处理(.bat)中使用相对路径


下一篇:Azure China