How to automate the cron job
Posted: Wed Oct 22, 2008 12:13 am
Hello,
There is a problem.
I have a html/php form. I will upload two csv files from that page. One csv contain “EMAIL Addresses” and second contain “ATTACHMENT” to send.
I want that when user upload csv files. Then it will be automatically set as a cron job. I don’t want that after uploading the csv file, user will visit the control panel and manually set the cron job. I want all this process automatic.
Here is a step by step requirement
1) User will upload two csv files from HTML/PHP page
2) One CSV has different email addresses
3) Second CSV is attachment file which will be send as attachment
4) When CSV file will be uploaded, then it will automatically set as a cron job
5) If user upload CSV file at 8:30am , then cron job will be ready to run at 9:00 am
6) The cron job just read the email addreses from CSv file and attaches the second CSv file for attachment and send to the users
7) This will happen after every one hour.
Hope you understand the requirement. The main thing is that how to Automate the CronJob, means when user uploads the CSv file then it will automatically set as cron job
There is a problem.
I have a html/php form. I will upload two csv files from that page. One csv contain “EMAIL Addresses” and second contain “ATTACHMENT” to send.
I want that when user upload csv files. Then it will be automatically set as a cron job. I don’t want that after uploading the csv file, user will visit the control panel and manually set the cron job. I want all this process automatic.
Here is a step by step requirement
1) User will upload two csv files from HTML/PHP page
2) One CSV has different email addresses
3) Second CSV is attachment file which will be send as attachment
4) When CSV file will be uploaded, then it will automatically set as a cron job
5) If user upload CSV file at 8:30am , then cron job will be ready to run at 9:00 am
6) The cron job just read the email addreses from CSv file and attaches the second CSv file for attachment and send to the users
7) This will happen after every one hour.
Hope you understand the requirement. The main thing is that how to Automate the CronJob, means when user uploads the CSv file then it will automatically set as cron job