[Rails] Howto start a unix Tail -f within Rails

Luc Evers lucevers at gmail.com
Fri Sep 8 13:52:13 GMT 2006


 Hi,

 How can I start a Unix 'Tail -f' command and follow on web (Rails) the
results?


The example below will not work because this method waits until the shell
command is finished executing.
The same problem for 'popen'.

<%= %x{tail -f} %>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060908/60b288b9/attachment.html


More information about the Rails mailing list