是否有任何可用的脚本语言与linux的expect脚本完全相同

发布于 2024-12-13 10:21:18 字数 148 浏览 6 评论 0原文

我想在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 技术交流群。

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

发布评论

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

评论(3

草莓酥 2024-12-20 10:21:18

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.

冷月断魂刀 2024-12-20 10:21:18

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) :)

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