简体   繁体   English

如何从我的网页运行本地服务器脚本?

[英]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.

相关问题 如何从我的 pages.ASPX 检索查询字符串到我的 HTML 文件脚本? - How can I retrieve query string from my webpage .ASPX to my HTML file script? 每当网页加载时,如何运行 NodeJS 脚本? - How can I run a NodeJS script whenever a webpage loads? 如何在网页中移动dojo脚本? - How can I move a dojo script in my webpage? 我怎样才能在我的网页中只运行一次 JavaScript? - How can i run JavaScript inside my webpage only once? 如何只在网页上运行一次间隔? (jquery) - How can I run the interval on my webpage only once? (jquery) 我必须制作一个可以运行一些简单JavaScript的网页,但是我认为我的脚本没有运行 - I have to make a webpage that can run some simple JavaScript, but I don't think my script is running 当用户在我的网页上按下按钮时,如何向服务器发送请求以运行 node.js 文件? - When a user presses a button on my webpage, how can I send a request to a server to run a node.js file? Web SQL无法从本地文件系统运行,如何在没有任何服务器的情况下运行? - Web SQL not working from local file system, how can I run without any server? 如何将内容从博客中提取到我的网页上? - How can I pull content from blogger onto my webpage? 如何从网页中删除一些JavaScript? - How can I remove a some javascript from my webpage?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM