Question : windows telnet unix help

I have windows and telnet.  I am trying to write a script that connects to a unix mail server and issues a ETRN.  Right now I have to hit start run telnet enter open enter(the isp name and port) enter ETRN and domain name enter.  I had a bat file that justs telnet isp name and port which takes me to the prompt for the ETRN and domain.  I tried to use the expect and send command but it doesn't do anything till I quite then the commands try to run giving me errors in telnet.  I don't know if the script is the problem or if it is windows telnet program.  Heres the script as I last tried it.

Telnet mail.theisp.net 25
expect ""
send "\r"

Answer : windows telnet unix help

you can try useing netcat instead
http://www.atstake.com/research/tools/network_utilities/

make a file "send.txt" containing what you want to send
to the remote server and then execute
"nc mail.theisp.com 25 < send.txt"
Random Solutions  
 
programming4us programming4us