[英]how can i run a local server script from my webpage?
i'm using javascript and html to create a webpage and i want it to run local powershell script on the server its running on.我正在使用 javascript 和 html 创建一个网页,我希望它在其运行的服务器上运行本地 powershell 脚本。 the purpose of this is having kind of a web ui for running usefull scripts in my domain instead of manually going to the file location and run it as a refular powershell script.
这样做的目的是使用 web ui 来在我的域中运行有用的脚本,而不是手动转到文件位置并将其作为常规 powershell 脚本运行。
also, basically i have a gui app i made for some of those scripts so i just want it to be online so the rest of my team can access it and not only from my desktop.另外,基本上我有一个为其中一些脚本制作的 gui 应用程序,所以我只想让它在线,这样我团队的 rest 就可以访问它,而不仅仅是从我的桌面访问。
i've searched all over the internet and couldn't find anything like what i need...我在整个互联网上搜索,找不到任何我需要的东西......
is there a way in javascript to run on demand a local ps file? javascript 有没有办法按需运行本地 ps 文件?
Maybe an AJAX request from the client to your server (the one which host your scripts) can works.也许从客户端到您的服务器(托管脚本的服务器)的 AJAX 请求可以工作。
This AJAX request will ask your server to run "name_of_the_script.ps".此 AJAX 请求将要求您的服务器运行“name_of_the_script.ps”。
https://www.itdroplets.com/run-a-powershell-script-from-php/https://www.itdroplets.com/run-a-powershell-script-from-php/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.