From: Ville Mattila Date: 2002-01-10T02:01:40+09:00 Subject: Re: Extension to libexpect Javier Fontan writes: > Hello, > > I need to use functionality like expect to use ssh and scp in one of my > projects, I started to play with pty, expect and expecter (borrowed from a > Matz message) but I had some problems with PTY (Child_changed and fork > errors) than couldn't solve. So I started to write an extension of libexpect > (that is bundled with expect program). Now works fine for me as I don't need > all the funcionality and only search for substrings, no regexp or such. It's > also function based, so only one program can be "expected". I will start to > rewrite it to make a class and add some more funcionality to it. What could > be better, to "imitate" the libexpect API into a class? so you can use all > the functions and parameters or a should I forget the parts I don't need? Great news. I think you will have a lot of requests and comments, once you have released your code to public consumption. Just code the parts that you need yourself and release it. Other will surely give you improvment patches later. - Ville