expect telnet issue

Lonni J Friedman netllama at gmail.com
Mon Oct 15 11:31:06 PDT 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, 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?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama at gmail.com
LlamaLand                       https://netllama.linux-sxs.org



More information about the Linux-users mailing list