diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-04 20:30:00 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-04 20:30:00 -0700 |
commit | bec2f20c6e67829299469a6313ec439435c80cff (patch) | |
tree | 7cd19dded8cf8ff0350d99a53f401760176be1b2 | |
parent | b72d545cdecc50fcae475b40c1eb88688365f56b (diff) | |
download | lognotify-bec2f20c6e67829299469a6313ec439435c80cff.tar.gz lognotify-bec2f20c6e67829299469a6313ec439435c80cff.tar.xz |
Oops... :)
-rwxr-xr-x | lognotify.rb | 4 |
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 |