问题
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?
Thanks
回答1:
There's probably more possibilites, but from the top of my head:
- Mark Russinovich's psexec (notes@ss64.com)
- the Windows Management Instrumentation Commandline tool wmic (notes@ss64.com)
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.
来源:https://stackoverflow.com/questions/29645053/trigger-perl-scripts-remotely-on-windows