From: Steve Johnston Date: 2012-01-11T09:06:05+09:00 Subject: Re: Session Gem: How to get line-by-line output from shell script using This works. I run a perl script from ruby, and get line-by-line output as it runs. --------------------- #!/usr/bin/env ruby readme = IO.popen("/home/test/perl2.ruby.pl") while readme.gets do puts $_ end readme.close --------------------- Thanks to http://pleac.sourceforge.net/pleac_ruby/processmanagementetc.html -- Posted via http://www.ruby-forum.com/.