try pexpect. http://pexpect.sourceforge.net/
valpa wrote: > I'm a net admin for about 20 unix servers, and I need to frequently > telnet on to them and configure them. > It is a tiring job to open a xterm and telnet, username, password to > each server. > > Can I do it automatically by python? After that, there have 20 xterm > consoles opened and telneted to their corresponding servers. Then I > could start to type command in these xterms. > > Any suggestion appreciate. Much thanks. -- http://mail.python.org/mailman/listinfo/python-list