phillon.morris-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-Dec-10 13:07 UTC
Saving data from the output window to a text file
Hi group, I''m a complete novice who is having lots of fun discovering Ruby, Ruby on Rails / Watir. Good bits of software. I wanted to record the info in the output window, into a text file. I wanted to do this in Ruby as I don''t know enough about R-o-R. Can anyone help me out on this. 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Dec-10 14:45 UTC
Re: Saving data from the output window to a text file
On Dec 10, 1:07 pm, "phillon.mor...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <phillon.mor...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi group, > > I''m a complete novice who is having lots of fun discovering Ruby, Ruby > on Rails / Watir. Good bits of software. > > I wanted to record the info in the output window, into a text file. I > wanted to do this in Ruby as I don''t know enough about R-o-R. >as in the output you get when you run script/server ? It''s already being saved to log/development.log (or log/production.log when in the production environment etc...) Fred> Can anyone help me out on this. > > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Also, if you want whatever you spit out using puts i.e puts array.inspect then you can save to a text file by running mongrel in deamon mode mongrel_rails start -d This will save all output in log/mongrel.log On Dec 10, 1:07 pm, "phillon.mor...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <phillon.mor...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi group, > > I''m a complete novice who is having lots of fun discovering Ruby, Ruby > on Rails / Watir. Good bits of software. > > I wanted to record the info in the output window, into a text file. I > wanted to do this in Ruby as I don''t know enough about R-o-R. > > Can anyone help me out on this. > > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---