I am facing a weird problem. Every time I call a particular command cmd
via subprocess.Popen(cmd).wait()
, the stty gets bad (does not echo my further commands on the shell, newline does not work, etc.) when the command is over. I have to run stty sane
to get the stty fine again. What could be the reason for this?
Update The command I am running is starting the elasticsearch process. The command launches the process in the background.