From dc62fc3f5121e41d61ea3ccef4b33de1baa60315 Mon Sep 17 00:00:00 2001 From: erderial <71669104+erderial@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:35:05 +0300 Subject: [PATCH] changed subprocess .run to Popen changed subprocess .run to Popen to open separate subprocesses for simultaneous run of console windows. --- confluent_client/bin/nodeconsole | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodeconsole b/confluent_client/bin/nodeconsole index 73aeae62..25e190b2 100755 --- a/confluent_client/bin/nodeconsole +++ b/confluent_client/bin/nodeconsole @@ -64,7 +64,8 @@ if options.windowed: sys.exit(1) nodes.append(node) for node in sortutil.natural_sort(nodes): - subprocess.call(['xterm', '-e', 'nodeconsole', node]) + sub = subprocess.Popen(['xterm', '-e', 'nodeconsole', node]) + out,err = sub.communicate() #end of wcons if options.tile: null = open('/dev/null', 'w')