Open GoldsteinE opened 5 years ago
For now .popen().iter_lines() caches all of process output, so it's unusable for long-running processes. E. g.
.popen().iter_lines()
from plumbum.cmd import yes for _ in yes.popen().iter_lines(): pass
will eventually eat of all memory. There should be an option to discard old output and consume memory only for current lines.
Is there any workaround?
Hi! any update on this?
PR welcome if you have an idea.
For now
.popen().iter_lines()
caches all of process output, so it's unusable for long-running processes. E. g.will eventually eat of all memory. There should be an option to discard old output and consume memory only for current lines.