From 298364a43ef86b099916d1856a488b786172da4a Mon Sep 17 00:00:00 2001 From: Mehdi Hasan Date: Wed, 14 Aug 2019 03:07:47 +0600 Subject: [PATCH] Fix instruction with socat --- README.md | 2 +- png2escpos.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 075e549..9b6cbd8 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Download binary from [release tab](https://github.com/mugli/png2escpos/releases) Or, if you have a network printer listening at 192.168.1.100:9100 you can use socat to forward from stdin to network like this: - Linux: ./png2escpos > socat STDIN TCP4:192.168.1.100:9100 + Linux: ./png2escpos | socat STDIN TCP4:192.168.1.100:9100 macOS: ./png2escpos | socat STDIN TCP4:192.168.1.100:9100 (you may have to install socat on macOS with brew install socat first) diff --git a/png2escpos.go b/png2escpos.go index d179f02..170c13f 100644 --- a/png2escpos.go +++ b/png2escpos.go @@ -61,7 +61,7 @@ and then encodes in ESC/POS format. Or, if you have a network printer listening at 192.168.1.100:9100 you can use socat to forward from stdin to network like this: - Linux: ./png2escpos > socat STDIN TCP4:192.168.1.100:9100 + Linux: ./png2escpos | socat STDIN TCP4:192.168.1.100:9100 macOS: ./png2escpos | socat STDIN TCP4:192.168.1.100:9100 Other commands: