[Rails] interactive web app

Inge Jørgensen
Wed, 05 Jul 2006 13:41:25 -0000

That''s not a problem. Send the output of the program to a text file
(works on both *nix and windows). Create a rails action that parses the
file and outputs either the last line or the entire file (depending on
what you''re trying to do). Then, create an ajax updater in the view
that
updates a div every few seconds with the output of the action.

User wrote:
> I have an arbitrary program written in any language, and it is a binary
> (ie foo.exe), that will print out output to stdout constantly every 3-5
> seconds.
>
> Is there a way that I can have a web application designed in rails that
> will print the output of this program to the browser every 3-5 seconds
> in realtime, preferably even in an ajax manner.
>
> thanks
>
>