I'm using PsExec to run a command line program without having to wait for it to finish to report back to the script that ran it. I'm using a PHP script to run it. When I run the PHP script manually on the server, everything runs fine and works as expected. However, when I run the PHP script through the webserver using a GET request to send my parameters, it just hangs. Specifically, it hangs at the exec()
that initiates the psexec
command. Just hangs and hangs forever, until Apache sends out a max execution time
error. Why is it hanging, and how can I fix it?
Operating system is Windows Server 2008