Hi I am running a python script inside PHP using the shell_exec command, However how would I know if the execution of the python has been completed already?
Here is portion of my code
$py_path = 'app/public/engines/validation/delta';
chdir($py_path);
$py_var = 'python scraped_data.py';
$exec = shell_exec($py_var);
How would I know if the python is finished its processing? I wanted to know because I have a series of processes to run but it needs the first process to be completed first.
Thank You,