Hi,
I'm running a telnet to localhost using a heredoc in solaris:
(SunOS 5.10 Generic_142900-05 sun4u sparc SUNW,SPARC-Enterprise)
telnet localhost 25 <<XXX
MAIL FROM:
one@mymail.com
RCPT TO:
two@mymail.com
DATA
SUBJECT: mysubject
solaris
Regards
.
QUIT
XXX
It works fine, but doing same in Linux is not working, but not returning error, however if I do it line by line it works on linux, but when using heredoc it does not work, I have another commands using heredocs and have no issues, so issue is telnet + heredoc. Is there anything I'm doing wrong? I'm not a linux expert so any help would be appreciated.
(Linux 2.6.18-164.el5 #1 SMP Thu Sep 3 04:15:13 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux)
TIA
Gabriel