Hi,
I have tried
system("psexec -i -d -s C:/WINDOWS/notepad.exe");
and when I execute the script from my browser ( IE and FireF@x ) the page does not load. When i looked in the Apache Error log there are the lines:
[Mon May 26 17:51:12 2008] [error] [client 127.0.0.1] PsExec v1.94 - Execute processes remotely\r
[Mon May 26 17:51:12 2008] [error] [client 127.0.0.1] Copyright (C) 2001-2008 Mark Russinovich\r
[Mon May 26 17:51:12 2008] [error] [client 127.0.0.1] Sysinternals - <a href="http://www.sysinternals.com\r">www.sysinternals.com\r</a>
[Mon May 26 17:51:12 2008] [error] [client 127.0.0.1] \r
but notepad.exe does not open.
I have also tryed this in PHP as well as perl and the command psexec -i -d -s C:/WINDOWS/notepad.exe runs exactly as desired when I run it in CMD
Regards,
Sam Rudge