Hi!

Maybe you can use Expect to solve the problem (of automating
logins)? See the Expect homepage (http://expect.nist.gov/) or
the book "Exploring Expect" by Don Libes, O'Reilly 1995.

Regards, David Kaasen.


On Fri, 20 Jul 2001, Chris Green wrote:

> On Fri, Jul 20, 2001 at 03:14:34AM +0000, Geoff Wing wrote:
> > Chris Green <[EMAIL PROTECTED]> typed:
> > : I'm trying to automate something by using "rxvt -e <command>" and,
> > : for some reason it's failing.
...
> I have a short 'C' program which automates login via telnet to a
> remote system.  I.e. the 'C' program uses ioctl(fd, TIOCSTI, cp) to
> stuff the following into the keyboard buffer:-
>
>     "telnet -l chris <name of system>\n"
>
> It then sleeps for a few seconds and stuffs the password for the
> remote system into the keyboard buffer.
...

Reply via email to