I used Laravel for my framework and build script by Laravel command (Artisan) / (Symfony/process)
In my method, I used the command ps -f | grep node
to find my all-node process pid.
I try to run this command to the terminal - running well method have a return perfectly - use the root user
but when i used controller and call by request url, my method can't return (absolutly "") / NULL -> runing with php / use _www/ apache user
use Symfony\Component\Process\Process;
$f='ps -f | greb node';
$processFind = Process::fromShellCommandline($f);
$processFind->run();
dd($processFind->getOutput());