ensure we retrieve a single PID when run on a cluster node

This commit is contained in:
cody burkard
2014-10-31 08:23:00 -07:00
parent f6de358b06
commit f66904ab90
+1 -1
View File
@@ -9,7 +9,7 @@ else
host=$1
fi
pid=`ps ax | grep "mininet:$host$" | grep bash | awk '{print $1};'`
pid=`ps ax | grep "mininet:$host$" | grep bash | grep -v mnexec | awk '{print $1};'`
if echo $pid | grep -q ' '; then
echo "Error: found multiple mininet:$host processes"