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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.