i have written a shell-script which logs onto a mail-server using telnet and then tries to send the HELO command. The code for the same looks something like this:
exec telnet 126.96.36.199 25; echo "HELO";
The problem is that though the telnet connection is established the "HELO" command doesn't get executed. Kindly let me know what to do to get the "HELO" command executed.
Thanks in advance.