#!/bin/bash
cwd=`pwd`
pid=$1
host=$2

#检查本地的进程
if [ $host == "127.0.0.1" ];then
    kill -9 $pid
else
    ssh $host "kill -9 $pid"
fi

