From: Zhao Yi Date: 2009-01-05T15:08:14+09:00 Subject: Question about run external program in Ruby I use this method to run a external program in ruby: io=IO.popen("lsa 2>&1")do |f| while line =f.gets do puts line end end I can get both stdout and stderr output but how can I get the command return value? thanks. -- Posted via http://www.ruby-forum.com/.