Vote count:
0
Running the php script below in a web page and the array never has anything in it.
Does anyone have any ideas as to what I coudl be doing wrong?
Many thanks
$command = 'psexec -accepteula \\\server-u xxxxxxxx -p xxxxxxxx cmd.exe /c sc query "Dnscache" | findstr "RUNNING"';
echo $command;
exec($command,$output,$return);
echo $output;
echo "yes";
echo $return;
print_r( $output);
asked 45 secs ago
Aucun commentaire:
Enregistrer un commentaire