Is it possible to schedule a single php function to run at a specific time in the future using the Unix ‘at’ command? If so how would this be done?
Also is this the best way to handle scheduling a single function to run at a later date?
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.
Sure, you can use
atorcron, and pass the-Rflag to PHP to execute the command line:Or it is perhaps better to call a file which may contain multiple commands