# Running a perl script in a rails application

**URL:** <https://www.ruby-forum.com/t/running-a-perl-script-in-a-rails-application/128946>\
**Category:** Rails\
**Created:** [February 12, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/running-a-perl-script-in-a-rails-application/128946 "2008-02-12T21:51:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 12, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/running-a-perl-script-in-a-rails-application/128946/1 "2008-02-12T21:51:25Z")

</div>

I have a perl script that will be executed in one of my controllers  
and will produce text output for a period of time. When I hit my rails  
app, the page doesn’t render until the perl script has fully completed  
running and then I’ll see all the output in one shot. I know with CGI  
I can just autoflush to see the output as it’s produced. Is there some  
similar functionality with RoR? Or is there some AJAX solution? I’m  
new to rails so any help is much appreciated.

Thanks
