I am working on CakePHP 3.4 project.
I have to execute some command to scan through the files and directories of a particular directory. This might take long time depending on the size of the directory, therefore I want to run it in background and mark running label in view until it executed successfully.
How can I run a Shell Task in the background from Controller and update database on execution?
I'm new to Shell tasks.