summaryrefslogtreecommitdiff
path: root/lognotify.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-04 20:30:00 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-04 20:30:00 -0700
commitbec2f20c6e67829299469a6313ec439435c80cff (patch)
tree7cd19dded8cf8ff0350d99a53f401760176be1b2 /lognotify.rb
parentb72d545cdecc50fcae475b40c1eb88688365f56b (diff)
downloadlognotify-bec2f20c6e67829299469a6313ec439435c80cff.tar.gz
lognotify-bec2f20c6e67829299469a6313ec439435c80cff.tar.xz
Oops... :)
Diffstat (limited to 'lognotify.rb')
-rwxr-xr-xlognotify.rb4
1 files changed, 2 insertions, 2 deletions
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