I'm starting a simple process via the Symfony Process component.
/**
* @Route("/start_process", name="startProcess")
*/
public function startProcessAction(Request $siteName) {
$process = new Process('"C:\Program Files (x86)\GnuWin32\bin\wget.exe" --no-parent -U Mozilla -r http://google.de/');
$process->start();
return new Response("Process STARTED");
}
This part works fine. However, since the process sometimes takes longer to finish, I would like to check its progress and output. The process is started asynchronously, so I thought I should be able to do that in a different controller that I call via ajax.
I have no idea how I would access the process object from another controller tho.