I am using Rails 1.2.3 and Active scaffold 1.1.1 My requirement is to send the export of users data weekly to the admin as email via cron. How can i automate the process of exporting csv and storing it at a place? So that i can pick it from there and attach to the email before sending? -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Thu, Jul 19, 2012 at 9:04 AM, Priya Saini <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am using Rails 1.2.3 and Active scaffold 1.1.1 > My requirement is to send the export of users data weekly to the admin > as email via cron. > > How can i automate the process of exporting csv and storing it at a > place? So that i can pick it from there and attach to the email before > sending? >Your problem is only partly related to Rails, but here is are some topics that you need to research: 1. How to run Cron jobs in your Linux distribution: * Have a look at "man crontab", "crontab -e", crontab -l" 2. You need to either call a rake task from your cron job, or, you write a simple shell script. Maybe a good start would be looking at the following projects: https://www.ruby-toolbox.com/search?utf8=%E2%9C%93&q=export * I also wrote a small import/export tool for a Rails application: https://github.com/mulderp/ffcrm_cli Maybe it''s helpful, note that you can load your rails environment for any script by using: require ''./config/environment'' -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Thanks for the reply Patrick. But my main concern is to store the activescaffold export in the file system. So that i can send it as attachment. I am familiar with cron process. Thanks -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
hi, I know how to upload file in particular folder and then import that file from that folder in active scaffold.Is this functionality is helpful for you? Regards, Vishal Singh On Fri, Jul 20, 2012 at 9:49 AM, Priya Saini <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Thanks for the reply Patrick. > > But my main concern is to store the activescaffold export in the file > system. So that i can send it as attachment. > I am familiar with cron process. > > Thanks > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
No, Vishal this will not help. Thanks vishal singh wrote in post #1069417:> hi, > > > I know how to upload file in particular folder and then import that file > from that folder in active scaffold.Is this functionality is helpful > for > you? > > > > Regards, > Vishal Singh-- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Amardeep Singh
2012-Jul-20 06:38 UTC
Re: Re: Re: ActiveScaffold Export file - Send as Email
how much experience do your have priya in Ror -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.