X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gearman-status.sh;h=85c8f7b4794b234dcbfa022081e947bb4bfa8ee3;hb=925ecfc00ce5ab771ff4337fcb9f1b27dc9570cb;hp=ff2cd6871606e94f06fc752dbcb3369ce02e3b64;hpb=7241e5fdda87d0cefd18bd020f7b09ee07d58449;p=cloudstore.git 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