lib/rbbt/util/cmd.rb in rbbt-util-5.32.6 vs lib/rbbt/util/cmd.rb in rbbt-util-5.32.7

- old
+ new

@@ -246,19 +246,29 @@ io = cmd(*all_args) pid = io.pids.first line = "" if bar + starting = true while c = io.getc - STDERR << c if Log.severity <= level - line << c if bar - if c == "\n" - bar.process(line) if bar + if starting if pid Log.logn "STDOUT [#{pid}]: ", level else Log.logn "STDOUT: ", level end + starting = false + end + STDERR << c if Log.severity <= level + line << c if bar + if c == "\n" + bar.process(line) if bar + starting = true + #if pid + # Log.logn "STDOUT [#{pid}]: ", level + #else + # Log.logn "STDOUT: ", level + #end line = "" if bar end end begin io.join