I searched the forum for something similar but didn't find it.
I' d like to know if it's possible to modify a crontab (by adding or deleting a cron job) FROM a php page.
I have a cron job that read a specific php page at a specific time.
This page calculate how many new cron jobs have to be added the next day in order to cover all events.
Once executed, each cron job has to be deleted from the script launched by itself.
My website in hosted on a LAMP server to wich I can access cron by cpanel.
If I create a crontab on my user dir (immediately outside public_html) how can I force cron to use that one? And what about the previous crontab? Is it still executed or is totally substituted by the new one?
Shall I use a particular user to access cron? If so, how can I switch user from php?
thanks a lot,
Ale