summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-12-13 13:07:33 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-12-13 13:07:33 +0100
commit6304c19180ec2e0c1f00145e86719e228195823a (patch)
treedfdcc514c37fd4fec07c28a20225d3b808a598c1 /priv
parent90c5da80334eed4b97f475e1c0553567a9f14f0a (diff)
Revert to using awk instead of cut
Diffstat (limited to 'priv')
-rwxr-xr-xpriv/templates/simplenode.runner6
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/simplenode.runner b/priv/templates/simplenode.runner
index cfde552..262cc1e 100755
--- a/priv/templates/simplenode.runner
+++ b/priv/templates/simplenode.runner
@@ -70,16 +70,16 @@ case "$1" in
Linux|Darwin|FreeBSD|DragonFly|NetBSD|OpenBSD)
# PID COMMAND
PID=`ps ax -o pid= -o command=|\
- grep "$RUNNER_BASE_DIR/.*/[b]eam"|cut -d' ' -f1`
+ grep "$RUNNER_BASE_DIR/.*/[b]eam"|awk '{print $1}'`
;;
SunOS)
# PID COMMAND
PID=`ps -ef -o pid= -o args=|\
- grep "$RUNNER_BASE_DIR/.*/[b]eam"|cut -d' ' -f1`
+ grep "$RUNNER_BASE_DIR/.*/[b]eam"|awk '{print $1}'`
;;
CYGWIN*)
# UID PID PPID TTY STIME COMMAND
- PID=`ps -efW|grep "$RUNNER_BASE_DIR/.*/[b]eam"|cut -d' ' -f2`
+ PID=`ps -efW|grep "$RUNNER_BASE_DIR/.*/[b]eam"|awk '{print $2}'`
;;
esac
$NODETOOL stop