How can i run an cron job from php, and the cron to start in that moment? I have a sitemap script, and i want to turn to a sitemap link, without waiting for him to do his job, to send information to call my job horn Sitemap.
Sorry my English
How can i run an cron job from php, and the cron to start in that moment? I have a sitemap script, and i want to turn to a sitemap link, without waiting for him to do his job, to send information to call my job horn Sitemap.
Sorry my English
A cron job needs to be entered into the "cron" schedule to run at a particular time.
My guess is that there is a script in your installation which is normally started by cron and you want to start it when your php program detects some condition.
You need to find out where the crontab script is located (try "crontab -e" for a list of currently defineded cron jobs) and start it uing a php system() or exec() command.