Can Python replace TCL/Expect

Robert Kern robert.kern at gmail.com
Thu Oct 6 02:22:16 EDT 2005


xinchenvn at gmail.com wrote:
> Hi
> 
> I'm learning Python. I don't know whether Python can do something like
> Expect can do. If yes, please show me how to do it.
> I want to do something automatically: open connection to a ftp server,
> get the welcome message on the screen (not in the packet). I can do it
> easily with Expect but I still don't have any idea with Python.
> If possible, can you introduce me some book or website that I can get
> infor about automation programming with Python

You'll probably want to take a look at pexpect:

  http://pexpect.sourceforge.net/

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Python-list mailing list