X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gearman-status.sh;h=85c8f7b4794b234dcbfa022081e947bb4bfa8ee3;hb=5be71a33d615fc10cb6cdc7711060a1260e6c8a4;hp=0e87f362839824b136184365d6309954a4cc1772;hpb=41a094c106a17fb85890659a2db59e1375ce8d7a;p=cloudstore.git diff --git a/gearman-status.sh b/gearman-status.sh index 0e87f36..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 +command=$1 +test -z "$command" && command="STATUS" +echo $command | nc -w 1 127.0.0.1 4730 | column -t