grep output buffering issues causing premature truncation of logs
LLeavesG opened this issue · comments
LLeaves commented
The grep command may also buffer its output, leading to premature truncation. This issue can be resolved by using the grep --line-buffered
option.
subprocess.Popen(args="adb logcat --pid={} | grep --line-buffered seccomp > {}/{}_{}.log ".format(pid, dir_path, package_name, pid), stdin=None, stdout=None,stderr=None, shell=True)