[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Using Telnet Command in Expect Script Question



I'm spawning telnet in an expect script (version 5.19).

If I run the script interactively from the UNIX prompt, it works great.
But, if I run it from a cron job it gets stuck here:

   spawn telnet abc.acme.com 
   Trying 199.190.21.20 ... 
   Connected to abc.acme.com. 
   Escape character is '^]'.

I think it's trying to negotiate the terminal type.

How do I get past this point so that I can run this script from cron?

Thanks,
Stan Hearn