From 9a0ec161de2fd4f724feabaf4f449be131a1d39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Str=C3=B6m?= Date: Thu, 6 Sep 2018 15:12:38 +0200 Subject: [PATCH] Let openconnect output go to stdout --- gp-okta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gp-okta.py b/gp-okta.py index cce5d4b..0254c6b 100755 --- a/gp-okta.py +++ b/gp-okta.py @@ -361,7 +361,7 @@ def main(): cmd = shlex.split(cmd) cmd = [os.path.expandvars(os.path.expanduser(x)) for x in cmd] pp = subprocess.Popen(shlex.split(pcmd), stdout=subprocess.PIPE) - cp = subprocess.Popen(cmd, stdin=pp.stdout, stdout=subprocess.PIPE) + cp = subprocess.Popen(cmd, stdin=pp.stdout, stdout=sys.stdout) pp.stdout.close() cp.communicate() else: