0
我想通过php列出在Windows服务器上运行的服务。因此,我在winexe上使用shell_exec
。PHP + winexe - >永远加载
我的脚本:
$cmd = "winexe --interactive=0 --user='***' --password='***' //192.168.***.** \"net start\"";
$output = shell_exec($cmd);
echo $output;
不幸的是在执行的页面加载永远没有结果。该命令适用于命令行(Debian)。
任何想法?
在此先感谢。
试图做到:1。使用PHP创建一个temp.sh(内容:#!/ bin/bash winexe --interactive = 1 --user = Administrator --password = xxx //192.168.xxx.xxx“net stop Tomcat6”)2.通过php执行脚本(shell_exec)---脚本正在运行但页面仍然会永久加载。也许有什么回报? – cr1zz