projects
/
cloudstore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
334e3e8
)
pass arbitrary command, e.g. workers
author
Dobrica Pavlinusic
<dpavlin@rsync1.maxxo.com>
Wed, 11 Apr 2012 19:28:03 +0000
(21:28 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rsync1.maxxo.com>
Wed, 11 Apr 2012 19:28:03 +0000
(21:28 +0200)
gearman-status.sh
patch
|
blob
|
history
diff --git
a/gearman-status.sh
b/gearman-status.sh
index
ff2cd68
..
85c8f7b
100755
(executable)
--- 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