expect telnet issue

Lonni J Friedman netllama at gmail.com
Mon Oct 15 18:31:49 UTC 2007


Greetings folks,
I've got a few expect scripts that I'm trying to use to automate
telnet logins on some remote power switches.  The expect scripts work
perfectly on their own, but I want/need to create a wrapper for them
so that they're all unified through a single script.  When I call the
expect script via a wrapper bash script, it no longer works.  I get as
far as the "spawn telnet foo.com" command working, and then it just
stalls without ever sending the username/password jazz.

I'm guessing that some kind of env variable isn't getting passed
somewhere, but I can't figure out what.

Anyone have any ideas on what might be going wrong?




More information about the fedora-list mailing list