File glb-doc_netcat.patch of Package glb
--- README.orig 2010-02-17 20:43:28.000000000 +0100
+++ README 2010-02-17 20:43:52.000000000 +0100
@@ -49,11 +49,11 @@
since it implies response.
Example (here glbd is listening at 127.0.0.1:4444):
-$ echo "192.168.0.1:3307:5" | nc -q 1 127.0.0.1 4444
+$ echo "192.168.0.1:3307:5" | netcat -q 1 127.0.0.1 4444
OK
-$ echo "192.168.0.2:3307:5" | nc -q 1 127.0.0.1 4444
+$ echo "192.168.0.2:3307:5" | netcat -q 1 127.0.0.1 4444
OK
-$ echo "getinfo" | nc -q 1 127.0.0.1 4444
+$ echo "getinfo" | netcat -q 1 127.0.0.1 4444
Router:
----------------------------------------------------
Address : weight usage conns
@@ -84,7 +84,7 @@
'getstat' command. The client can use these data to obtain useful information,
e.g. average number of reads per poll() call.
-$ echo "getstat" | nc -q 1 127.0.0.1 4444
+$ echo "getstat" | netcat -q 1 127.0.0.1 4444
in: 6930 out: 102728 recv: 109658 / 45 send: 109658 / 45 conns: 0 / 4 poll: 45 / 0 / 45 elapsed: 1.03428
Statistics line consists of fields separated by spaces for ease of parsing in