[Backgroundrb-devel] "tailing" a running system command?

Günter Ladwig gladwig at gmx.de
Wed Aug 16 16:31:47 EDT 2006

On 16.08.2006, at 22:14, mattp at digimonkey.com wrote:

> Run a system-level command like 'ping -t www.google.com' and have it
> periodically update a <div> with the command's ouput.  Is this  
> possible?
> (the trick here is that I want *periodic* updates of the div... i want
> to see incremental output as 'ping' is running, just like if I were
> looking at console...)

Yes, it should be possible. Have a look at the Rails function  
periodically_call_remote. In the controller method you could then get  
the output from your worker and replace the HTML in a particular  


More information about the Backgroundrb-devel mailing list