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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 17, 8:43 am, dhaval <dhaval.deshpan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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?? On Mar 17, 1:57 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mar 17, 8:43 am, dhaval <dhaval.deshpan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 17 Mar 2008, at 09:23, dhaval wrote:> > 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> > > On Mar 17, 1:57 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> On Mar 17, 8:43 am, dhaval <dhaval.deshpan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> 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 > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for that. I actually meant that On Mar 17, 3:08 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 17 Mar 2008, at 09:23, dhaval wrote: > > > > > 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 > > > > > On Mar 17, 1:57 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > >> On Mar 17, 8:43 am, dhaval <dhaval.deshpan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >>> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---