David Freeman wrote:
--- bsamuels@datamansys.co.uk wrote:
"Expect" is what you want. We have used it to send uuencoded text over telnet instead of FTP.
This is probably a bit old by now, but here's my script for connecting to cpca4 thru zen:
#!/usr/bin/expect -f
spawn telnet zen.sys.uea.ac.uk set timeout -1 expect { ogin: { send "u9953647\r"; } } expect { sword: { send "z78376r\r"; } } expect { > { send "telnet -a cpca4\r"; } } expect { sword: { send "z78376r\r"; } } interact
And for the folks with raised eyebrows, yes I did change the password. -1 disables timeout on 'expect'
Alexis