Hello people, I am trying to create a application where a person can set a reminder. for example a person may choose a date on which he wants the email to be sent to his email id, on submitting this data a cron job should start which would run daily and would deliver the email on the particular day at particular time. How can i achieve this? any help would be appreciated.. Thanks in advance.
Well it's going to need to run a hell of a lot more often than daily. You're going to want some sort of background process (cronjob, backgroundrb, long running ruby script, etc...). Then you'll probably have a table with what needs to be sent and when. Whenever your background process wakes up you just check whether anything needs sending now.
Fred
Thanks for the suggestion fredrick....Can you please tell me is it possible to do this using unix cronjob?? or do i need to use only a plugin backgroundrb or rubycron and lots of others??I wanted to do something like a file which is a .rb file inside crontab directory and then daemon would be created which would run this script..... Somethig like this...I am not very sure how you can do this but do u have any idea of doing it like this??
Thanks for the suggestion fredrick....Can you please tell me is it possible to do this using unix cronjob?? or do i need to use only a plugin backgroundrb or rubycron and lots of others??I wanted to do something like a file which is a .rb file inside crontab directory and then daemon would be created which would run this script..... Somethig like this...I am not very sure how you can do this but do u have any idea of doing it like this??
Well cron will quite happily run ruby scripts if that's what you're
asking
Fred
Thanks for that. I actually meant that