Disable echo for interactive distributed

This commit is contained in:
Angelos Katharopoulos
2025-12-11 17:47:42 -08:00
parent d3a754c8aa
commit 753c6a4d0f

View File

@@ -107,6 +107,9 @@ class RemoteProcess(CommandProcess):
def make_launch_script(rank, cwd, files, env, command): def make_launch_script(rank, cwd, files, env, command):
script = "" script = ""
# Disable echo
script = "stty -echo; "
# Write the PID to a file so we can kill the process if needed # Write the PID to a file so we can kill the process if needed
script += "pidfile=$(mktemp); " script += "pidfile=$(mktemp); "
script += "echo $$ > $pidfile; " script += "echo $$ > $pidfile; "