[Gllug] Are there any expect experts out there?
Steve Cobrin
cobrin at highbury.net
Sun Apr 13 14:48:19 UTC 2003
I would strongly recommend that you replace the telnet session with ssh.
Telnet is intrinsicly insecure, since the passwords must be transferred
unencrypted, and combined with an expect script, this means the plain
text password must be embedded in a script, which is yet another
security risk.
You would be far better off using ssh to handle the whole thing. Since
you can configure the script and the target host to have pre-agreed key
exchange configured.
On Sunday 13 April 2003 15:22, Anthony Chapman wrote:
> I'm trying to write a script to get some data out of an app. We
> normally talk to it using telnet, so I figured that it should be
> pretty simple to write something using expect
>
> The first response I send (the password) works fine, but after that a
> "\n" at the end of a string just shifts the cursor down a line. If I
> use the interact command after the send that didn't work I can press
> enter and get a complaint about the sting including a control
> character. I've tried using a "\r", which had the same effect, and
> using both in either order just moved the cursor further down the
> screen.
>
> Anyone have any ideas?
>
> --
> load "vmlinux.el",8,1
>
> -Anth
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list