telnet to localhost 25 not working in heredoc
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 |
|
Hi, tks for your post, but I don't think that is current issue, since I'm able to send email through port 25 when entering above line by line, issue here is when trying to enter it using heredoc, what makes me think about sintaxis but is weird I'm not getting any error at all.
|
Darn, sorry I didn't read your post well enough.
Line by line works so maybe an issue with line feed carriage return issue? Some telnet servers can clients may have issues with timings. May work with expect command? |
All times are GMT -5. The time now is 06:15 AM. |