From eb6999169ed18d9a437f8f11a8b8cc74c9db1e41 Mon Sep 17 00:00:00 2001 From: brent s Date: Mon, 9 Oct 2017 14:56:19 -0400 Subject: [PATCH] we want to narrow down the stdout vs stderr --- storage/badblocks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/storage/badblocks.py b/storage/badblocks.py index ab334d9..efe0a45 100755 --- a/storage/badblocks.py +++ b/storage/badblocks.py @@ -50,8 +50,9 @@ def chkDisk(disk): '-t', 'long', '-d', 'sat', disk] - for c in (bb, smctl): - subprocess.run(c) + with open(os.devnull, 'w') as DEVNULL: + for c in (bb, smctl): + subprocess.run(c, stdout = DEVNULL) return() def main():