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