By doing
public function spawn_queue_process(){
$command = 'echo hi > find_me.txt';
$process = new Process($command);
$process->setWorkingDirectory(base_path());
$process->start();
//Just in case :-)
Log::error($process->getOutput());
if(!$process->isSuccessful()){
$exception = new ProcessFailedException($process);
Log::error('Error on queue call');
Log::error($exception->getTraceAsString());
}
}
Even though the file is created, Symfony will throw an exception everytime, rendering useless everything inside $process output and making my program freak out about it.
Any ideas?
EDIT: Just for clarification, I got a way more complex command than this running on Linux with no problem, Windows Server however will fail on every single instance of process code.