在 Windows 上远程触发 perl 脚本 [英] Trigger perl scripts remotely on windows
问题描述
我有两台机器 A 和 B.机器 B 安装了 perl,脚本放在一个共享目录中.机器 A 没有安装 perl(我不想在这台机器上安装 perl).在机器 A 中运行了一些自动化,并且自动化希望通过传递一些参数来触发机器 B 中的 perl 脚本.
I have two machines A and B. Machine B has perl installed and scripts are placed in a shared directory. Machine A doesn't have perl installed (I don't want to install perl on this machine). There is some automation running in Machine A and that automation wants to trigger perl scripts in Machine B by passing some parameters.
这可能吗?有什么推荐?
Is this possible? What is recommended?
谢谢
推荐答案
可能还有更多可能,但我的想法是:
There's probably more possibilites, but from the top of my head:
- Mark Russinovich 的
psexec
(notes@ss64.com) - Windows Management Instrumentation 命令行工具
wmic
(notes@ss64.com)
只要执行 perl 脚本的机器安装了 perl,调用方机器没有安装也没有问题.
As long as the machine on which the perl scripts are to be executed has perl installed, it's not a problem if the caller machine doesn't.
这篇关于在 Windows 上远程触发 perl 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!