You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
riskshell/shell/killNode

14 lines
160 B

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