LAUT TOORE
2012-Jul-23 04:10 UTC
how to display the terminal output to the page in real time.
Hi, I''m New Here and also with Ruby on Rails use ubuntu 12 My question would be, how to display the terminal output to the page in real time. I am doing the following. In the controller def run @terminal = IO.popen(''./rcracki_mt -l hashtxt.txt -t 4 SHA1 '') end end In view <%= @terminal %> This works, but only prints the result once I finish running the program (. / Rcracki_mt) Is there any way to get terminal output showing in real time? Thanks and sorry for my English (google translator) -- 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.
Javier Quarite
2012-Jul-23 04:37 UTC
Re: how to display the terminal output to the page in real time.
Hi, you need something like pusher or maybe an ajax call that executes every 5 seconds (maybe more), depends on the amount of data you are going to retrieve (because it may crash your app) Javier Q. -- 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.
Laut Toore
2012-Jul-23 16:16 UTC
Re: how to display the terminal output to the page in real time.
Thanks for the reply, I will investigate for that side -- 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.