some unix system use outputs port in column 2

Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
This commit is contained in:
Nakul Manchanda
2019-04-10 13:34:15 -04:00
parent 82b1b534b5
commit 7c94b8f009

View File

@@ -1,6 +1,7 @@
#!/bin/sh
echo 'restarting sample node api...'
# ps -elf | awk '/node/ && /app.js/ && !/sh -c/' | awk '{print $2}' | xargs kill -9 $1
ps -elf | awk '/node/ && /app.js/ && !/sh -c/' | awk '{print $3}' | xargs kill -9 $1
./start-sample-node-api.sh
sleep 30