The similar question was asked by davidb, however the circumstances are different.
I have a device with the 9-pin RS-232 port and an ancient printer connected to that device. I need to replace the printer with a Linux PC to capture data (an image) sent by the device. I can eavesdrop the transferred data via
snooper tool. This utility can route data between devices connected to different serial ports of a single PC (like
snooper /dev/ttyS0 /dev/ttyS1), and log it. However, I'm not sure is it enough just to substitute the printer's tty (say, /dev/ttyS1) with /dev/null, then get the image sent by the device and to lpr or email it.
Being short, I need a virtual serial printer on Linux with the ability to save everything to some gif or whatever.
Thanks in advance.