I have a Python script that makes use of the following modules:
import sys, getopt, os, time, subprocess
When I run this script, at some point the output starts 'tabbing' itself.
Expected output:
line1
line2
line3
Output I get:
line 1
line 2
line 3
When the script completes, or I exit it my shell (via SSH) becomes broken. I cannot see what I'm typing, and hitting enter doesn't create a new line but instead just 'tabs' as well (output of hitting enter a few times, then
ps ax | grep [s]sh
, then enter a few more times):
Any thoughts or ideas as to what may be causing this and how it can be resolved or debugged?
reset
. As for what is causing it to get messed up, probably your script is printing some kind of control character to the screen. Can you show its output, and the code that causes it? – Blckknght Oct 19 '12 at 19:19reset
or if that doesn't work, thenstty sane
– Petesh Oct 19 '12 at 19:26