2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Changed the Popen to skip the communication

Changed the Popen to skip the communication
added escape method
This commit is contained in:
erderial 2022-10-14 18:03:51 +03:00 committed by GitHub
parent 4ba0087c93
commit 8827e7efe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')