#!/bin/sh #杀死进程 if [ -e $1.pid ] then p=`cat $1.pid` kill -9 $p if [ $? -eq 0 ] then echo "成功杀死进程:$p" rm -f pid fi fi ./run.sh