From bec2f20c6e67829299469a6313ec439435c80cff Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 4 Oct 2010 20:30:00 -0700 Subject: Oops... :) --- lognotify.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lognotify.rb') diff --git a/lognotify.rb b/lognotify.rb index 1472117..5f16df2 100755 --- a/lognotify.rb +++ b/lognotify.rb @@ -84,9 +84,9 @@ def retrieve_lines conf, lines Open3.popen3(command) do |stdin, stdout, stderr| # Raise an error if any part of the command resulted in an error. - raise stderr.gets unless stderr.eof? + raise stderr.read unless stderr.eof? - return stdout.gets.to_s + return stdout.read end end -- cgit v1.2.3-70-g09d2