Is it possible to add a line to the cronjob with php?
What i'm trying to reach is the following:
I've got a button on my page, which starts long and cpu hungry process (parsing all files for a searchmachine). When the user clicks on the button, i need to add a line to the cronjob which starts a php script. This php scripts starts the long process and when its finished it removes the cronjob line.
Is this a good solution, or are there better alternatives?
Thanks!
-jan