在 Linux 上捕获虚拟打印机输出

发布于 2024-09-24 18:30:52 字数 157 浏览 1 评论 0原文

我正在为 3270 大型机编写一个 Java 屏幕抓取应用程序,而不是一页一页地滚动 80x24 字符,我想将所有页面输出到打印机,然后捕获并解析打印机输出。

3270 客户端有打印选项,因此我只需要虚拟化打印机设备,然后以某种方式捕获输出。以前有人在 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

知你几分 2024-10-01 18:30:53

您可能想为此目的创建一个 lpd 队列,然后连接到该队列。

You probably want to create a lpd-queue for this purpose and then hook into that.

旧城空念 2024-10-01 18:30:53

如果这是通过 VT100 的 3270,您可以在终端发出 VT100 打印捕获命令。否则,正如已经回答的那样,您可以启用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文