@@ -1,6 +1,6 @@
#!/bin/sh
cd /home/swooleProV2/dataInterface/commands/
-ps -ef | grep bootDangerTimer | awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
+ps -ef | grep bootDangerTimer | grep -v 'grep'| awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
sleep 1
php bootDangerTimer.php
-ps -ef | grep bootRedisToSql | awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
+ps -ef | grep bootRedisToSql | grep -v 'grep'| awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
php bootRedisToSql.php
-ps -ef | grep bootSetOnly | awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
+ps -ef | grep bootSetOnly | grep -v 'grep'| awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
php bootSetOnly.php
-ps -ef | grep bootHttp | awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
+ps -ef | grep bootHttp | grep -v 'grep'| awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
php bootHttp.php
-ps -ef | grep bootSettelementHttp | awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
+ps -ef | grep bootSettelementHttp |grep -v 'grep'| awk '{print $1}' | sort -n | head -n 1 | sed 's/root//' | xargs kill
php bootSettelementHttp.php