简体   繁体   中英

Capture virtual printer output on linux

I'm writing a Java screen-scraping application for a 3270 mainframe and rather than scroll through page after page of 80x24 chars I'd like to output all pages to a printer and then capture and parse the printer output.

The 3270 client has a print option, so I just need to virtualise a printer device and then somehow capture the output. Has anyone achieved this in Linux before?

您可能想要为此目的创建一个lpd队列,然后将其插入。

If this is 3270 via VT100 you can issue VT100 print capture commands at the terminal. Otherwise, as already answered you can enable LPD and put a filter on it to tee it to a file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM