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: