[ale] Using Telnet Command in Expect Script Question

Stan.Hearn at ipst.edu Stan.Hearn at ipst.edu
Sat Sep 5 12:50:46 EDT 1998


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






More information about the Ale mailing list