Skip to content

Commit

Permalink
Fix instruction with socat
Browse files Browse the repository at this point in the history
  • Loading branch information
mugli committed Aug 13, 2019
1 parent cc585e4 commit 298364a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <file.png> > socat STDIN TCP4:192.168.1.100:9100
Linux: ./png2escpos <file.png> | socat STDIN TCP4:192.168.1.100:9100
macOS: ./png2escpos <file.png> | socat STDIN TCP4:192.168.1.100:9100
(you may have to install socat on macOS with brew install socat first)
Expand Down
2 changes: 1 addition & 1 deletion png2escpos.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <file.png> > socat STDIN TCP4:192.168.1.100:9100
Linux: ./png2escpos <file.png> | socat STDIN TCP4:192.168.1.100:9100
macOS: ./png2escpos <file.png> | socat STDIN TCP4:192.168.1.100:9100
Other commands:
Expand Down

0 comments on commit 298364a

Please sign in to comment.