We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
我还没有使用过它,但也许看看 http://x3270.bgp.nu/ 上面写着版本:
I haven't used it but maybe look at http://x3270.bgp.nu/ which says has a version:
我目前正在尝试做类似的事情,但使用命令行 Python 脚本。
我打开一个到 s3270 的管道(在 Windows 上,exe 名称为 ws3270)以连接到服务器并发送所有命令。
仔细阅读脚本文档的这些部分:
http://x3270.bgp.nu/ wc3270-man.html#Actions
http://x3270 .bgp.nu/x3270-script.html#Script-Specific-Actions
I'm currently trying to do a similar thing but with a command line Python script.
I open a pipe to the s3270 (on Windows the exe name is ws3270) to connect to the server and send all commands.
Read carefully those part of the documentation for scripting:
http://x3270.bgp.nu/wc3270-man.html#Actions
http://x3270.bgp.nu/x3270-script.html#Script-Specific-Actions
虽然我没有使用 3270 的经验,但我希望找到并调用外部应用程序或库是您最好的选择。 PHP 不是一个通用工具,侵入非 Web 通信协议最好留给 C 或 Java 等可以很好处理的语言。
While I have no experience with 3270, I would expect that finding and calling on an outside application or library is your best bet. PHP is not an all-purpose tool, hacking into a non-web communications protocols is best left to languages like C or Java that can handle that well.
屏幕抓取 3270 应用程序是获取数据的一种非常有效的方式。 其中许多应用程序多年来甚至数十年都没有发生变化。 有时根本没有 API 或其他编程方式来获取必要的数据。
Screen scraping 3270 applications is a perfectly valid way of getting at data. Many of these applications haven't changed for years, or decades in some cases. Sometimes there is simply no API or other programmatic way of getting at the necessary data.
Nighthawk:你总是可以学习 CORBA,这个庞然大物的系统旨在让 C 程序与远程 COBOL 系统或用 PL/I 等编写的随机内容进行通信。
但说实话,如果旧应用程序没有 API,3270 屏幕抓取就可以了。 3270 屏幕和 HTML 表单之间有很多相似之处(与字符模式终端不同)。
Nighthawk: You could always learn CORBA, that monstrosity of a system was designed to let C programs talk to remote COBOL systems or random stuff written in PL/I or something.
But seriously, if the old app has no API, 3270 screen scraping is fine. There's a lot of similarities between 3270 screens and HTML forms (unlike character mode terminals).