From 3889132b088ea2ec9f1a551f37395f0a8cfe1a79 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 11 Apr 2012 21:28:03 +0200 Subject: [PATCH] pass arbitrary command, e.g. workers --- gearman-status.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gearman-status.sh b/gearman-status.sh index ff2cd68..85c8f7b 100755 --- a/gearman-status.sh +++ b/gearman-status.sh @@ -1,3 +1,5 @@ #!/bin/sh -xe -echo STATUS | nc -w 1 127.0.0.1 4730 | column -t +command=$1 +test -z "$command" && command="STATUS" +echo $command | nc -w 1 127.0.0.1 4730 | column -t -- 2.20.1