From 8827e7efe8ffbbc2a3fcf50d8647170ed37bb723 Mon Sep 17 00:00:00 2001 From: erderial <71669104+erderial@users.noreply.github.com> Date: Fri, 14 Oct 2022 18:03:51 +0300 Subject: [PATCH] Changed the Popen to skip the communication Changed the Popen to skip the communication added escape method --- confluent_client/bin/nodeconsole | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodeconsole b/confluent_client/bin/nodeconsole index 25e190b2..658d2998 100755 --- a/confluent_client/bin/nodeconsole +++ b/confluent_client/bin/nodeconsole @@ -54,6 +54,7 @@ if options.log: logreader.replay_to_console(logname) sys.exit(0) #added functionality for wcons + if options.windowed: nodes = [] sess = client.Command() @@ -65,7 +66,8 @@ if options.windowed: nodes.append(node) for node in sortutil.natural_sort(nodes): sub = subprocess.Popen(['xterm', '-e', 'nodeconsole', node]) - out,err = sub.communicate() + sys.exit(0) + #end of wcons if options.tile: null = open('/dev/null', 'w')