I need to provide my users with a way to stop their cron task so that it can restart on its 5 minute cycle.
I think I need to use shell_exec
to get the processes back and then kill the specific process. The only way I will be able to distinguish this process from the others running on the server are the paths i.e php /home/sconmod/public_html/**URN**/Includes/System/CronTask.php
.
Does anyone know a way I can get the process ID of a process by matching the path?
Thanks.