Just FYI - pexpect is a Python app that works like Expect - which is by Don Libes and written in TCL. Expect comes with most Linux distributions and is available for most UNIX / Linux versions from its web site http://expect.nist.gov/
The expect man page is enough to get started for simple needs, such as yours appears to be. You might want to play around with the original Expect a bit and then try out pexpect - or you could just use Expect itself for your needs. HTH Vasudev --- Vasudev Ram Independent software consultant http://www.geocities.com/vasudevram PDF conversion toolkit: http://sourceforge.net/projects/xtopdf --- faulkner wrote: > 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