I am running a command as such:
exec("grunt build --target=prod", $output, $status);
This just runs grunt within a folder and builds it. The output is captured without issue. However, it's all dumped at the end and grunt builds can take a bit to happen.
I'd like to know if I can capture the output as it happens and be able to echo it out in real time.
Any idea if that's a thing?