I am running a command in windows like :
command.exe > file.txt
and I get a text in the file, but when I run command.exe directly it does not shows that text on the console. The command should have outputted to stdout, but it didn’t. Is there a way I can find out which stream the text goes to and read that text using php.
Thanks in advance
Running shell commands in PHP is like calling shell_exec() or any of the linked functions there. The output of the command goes to where the doc says.
For example passthru() sends the output directly to the browser.