[geeks] Printer Recommendations

Ross Lonstein rlonstein+sunhelp at pobox.com
Thu Feb 10 12:41:12 CST 2022


On Thu, Feb 10, 2022 at 01:03:01PM -0500, Mouse wrote:
    [snip]
> Does "open a connection to port 9100 and send PostScript" work?

Yes. Just tested this on Linux to be sure:

  $ ps2pdf /usr/share/cups/data/default-testpage.pdf /tmp/output.ps
  $ socat -d -d -u /tmp/output.ps TCP4:w.x.y.z:9100
  2022/02/10 13:39:07 socat[250661] N opening regular file "/tmp/output.ps" for reading
  2022/02/10 13:39:07 socat[250661] N opening connection to AF=2 w.x.y.x:9100
  2022/02/10 13:39:07 socat[250661] N successfully connected from local address AF=2 w.x.y.z:54034
  2022/02/10 13:39:07 socat[250661] N starting data transfer loop with FDs [5,5] and [6,6]
  2022/02/10 13:39:07 socat[250661] N socket 1 (fd 5) is at EOF
  2022/02/10 13:39:07 socat[250661] N exiting with status 0

I got a test page.

- Ross


More information about the geeks mailing list