Hi all, I am not sure how this works, but am composing my query here.
I am trying to expect the below snippet using telnetlib. ################# bash# install blah blah blah do you want to continue [y/n]? y blah blah blah blah blah blah blah blah blah blah blah blah Installation complete bash# ################## For the above, i am doing t.read_until("bash#") t.write("install\n") t.read_until("n]? ") t.write("y\n") t.read_until("bash#") t.write('exit\n") However, from the time i key 'y/n' till the install script exits, there is a lot of data that is to be logged. I takes around 1 hour for the whole script to exit. Is there some way i can read whats happening behind the scenes until it hits the read_until? Thanks for the help -- Vinay
-- http://mail.python.org/mailman/listinfo/python-list