diff --git a/bin/rqinfo b/bin/rqinfo index 496ee028..cc3905b5 100755 --- a/bin/rqinfo +++ b/bin/rqinfo @@ -148,10 +148,10 @@ def parse_args(): def interval(val, func, args): while True: - if val: + if val and sys.stdout.isatty(): os.system('clear') func(args) - if val: + if val and sys.stdout.isatty(): time.sleep(val) else: break