LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-29-2012, 07:06 PM   #1
garagonp
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
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
 
Old 03-01-2012, 03:06 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
http://kb.siteground.com/article/How...s_blocked.html
 
Old 03-01-2012, 04:49 PM   #3
garagonp
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-01-2012, 09:52 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot telnet localhost badihi Linux - Server 7 06-05-2011 06:15 PM
Telnet not working for localhost Abhy Linux - Newbie 5 04-15-2011 02:56 AM
Fail to telnet localhost 25 satimis Linux - Server 19 11-27-2006 09:43 AM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 05:13 AM
Telnet localhost and telnet not from localhost for IMAP services seb77 Linux - Networking 1 10-15-2003 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration