是否有任何可用的脚本语言与linux的expect脚本完全相同
我想在windows中使用linux的expect脚本。我在 Windows 中尝试使用 perl Expect 模块 expect.pm
,它不起作用。
请建议我 Windows 中是否有任何与预期类似的语言可用,而不使用 cygwin。
I want to use the linux expect scripts in windows. I tried with perl expect module expect.pm
in windows, its not working.
Please suggest me is there any language is available in windows that is similar to expect, without using cygwin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
expect 是 Tcl 之上的免费软件,所以我想您应该在系统上安装 Tcl。根据其网页,expect已经移植到Windows。
expect is a free software above Tcl, so I suppose you should have Tcl installed on your system. And according to its web page, expect has been ported to Windows.
ActiveState 提供预计适用于 Windows
ActiveState provides Expect for Windows
Basile 是正确的,Expect 已移植到 Windows。如果您安装 ActiveState 版本的 Tcl,则必须单独安装 Expect,因为它不再与它捆绑在一起。安装后,只需打开命令提示符并运行以下命令:
teacup install Expect
安装的 ActiveTcl 手册有关于如何使用它的详细文档(但看起来您已经知道如何使用):)
Basile is correct, Expect has been ported to Windows. If you install ActiveState's version of Tcl, you will then have to install Expect separately as it does not come bundled with it (anymore). Once you install it, just open up an command prompt and run the following:
teacup install Expect
The ActiveTcl manual that gets installed has great documentation on how to use it (but looks like you already know how to) :)