Skip to content
Snippets Groups Projects
Commit edf899ce authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

update firewall deployed in another terminal

parent 3a902f45
No related branches found
No related tags found
No related merge requests found
......@@ -235,8 +235,16 @@ def run_firewall_solo5_hvt(private, public):
]
try:
print(f"{command}")
subprocess.run(command, check=True)
command_str = " ".join(command)
print(f"{command_str}")
# subprocess.run(command, check=True)
subprocess.Popen(
['xterm', '-hold', '-e', command_str],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
stdin=subprocess.DEVNULL,
start_new_session=True
)
except subprocess.CalledProcessError as e:
print(f"Error executing command: {e}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment