I run a simple php code on windows machine: exec('b.exe b.txt c.txt').
b.txt is the input and c.txt is the output.
sometimes the output txt file(c.txt) is very big and i need to prevent it by killing the process. I think i must check the size of output and if is bigger than 10 MB i must kill the exec. Any idea about how i could kill the exec;