Let openconnect output go to stdout

This commit is contained in:
Johan Ström
2018-09-06 15:12:38 +02:00
parent c445c828e9
commit 9a0ec161de
+1 -1
View File
@@ -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: