From: bbense+comp.lang.ruby.Jan.10.02@... Date: 2002-01-11T01:22:50+09:00 Subject: Re: Extension to libexpect -----BEGIN PGP SIGNED MESSAGE----- In article <02010917375003.00981@pc3d.cesga.es>, Javier Fontan wrote: > >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? > - - It might be worth looking at the Perl version of expect. It's a "Mostly" perl implementation that uses some c code for the tty stuff. It's in CPAN under modules/Expect. - - I think whatever you would release would be interesting. - - Booker C. Bense -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBPD2+rgD83u1ILnWNAQEBNgP/c6bJqkF+GjWnVqFI5kkpn+aD81k3kqId gT8scnma9uXWd5Op/5B4hj6hEj9uZE+kYegmj/HOb1pg8b1gC+lAZmZzctNx8fvn v/0KQO/RjJta3iMuyc5gWGo19flkKSMQdwd5OM20oL7xdIQvP7jYTVNNhcG5eUD5 mTtNM+KhBl0= =ATv3 -----END PGP SIGNATURE----- --