【发布时间】:2014-04-29 06:43:20
【问题描述】:
我正在尝试通过 php 列出 Windows 服务器上正在运行的服务。因此我将shell_exec 与winexe 一起使用。
我的脚本:
$cmd = "winexe --interactive=0 --user='***' --password='***' //192.168.***.** \"net start\"";
$output = shell_exec($cmd);
echo $output;
不幸的是,页面在执行时永远加载而没有结果。该命令适用于命令行 (Debian)。
谁有想法?
提前致谢。
【问题讨论】: