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 22.214.171.124 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.