Operating System - HP-UX
1753672 Members
5239 Online
108799 Solutions
New Discussion юеВ

Re: telnet port 25 script

 
Michael Skora
Advisor

telnet port 25 script

Hi anyone - I thought it would be easy to send a message from HP-UX 10.20 using the following script called "magic3":

telnet 193.0.9.27 25 <
19 REPLIES 19
Jeff Schussele
Honored Contributor

Re: telnet port 25 script

Michael,

Not 100% sure but try blank lines before & after the ".".

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: telnet port 25 script

If that doesn't work - try
\015\012 on lines before & after.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Skora
Advisor

Re: telnet port 25 script

Thanks Jeff, but no work. In fact, with the extra blank lines, it now takes two Ctrl-C's to complete the script.
Michael Skora
Advisor

Re: telnet port 25 script

Jeff - that didn't work either. But when I Ctrl-C's, the message went through and was:
test
\015\012
Jeff Schussele
Honored Contributor

Re: telnet port 25 script

Ok - is the mail server local ie the same system you run this script on?

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Skora
Advisor

Re: telnet port 25 script

Well, the Exchange server is on the same LAN if that's what you mean.
harry d brown jr
Honored Contributor

Re: telnet port 25 script

Jeff Schussele
Honored Contributor

Re: telnet port 25 script

What kind of system you running this on.
If UNIX what is it - do:
#uname -a

also do:
# echo $SHELL

You're not getting out of the script - need more info.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Skora
Advisor

Re: telnet port 25 script

Jeff -

# uname -a gives:
HP-UX hawk04uk B.10.20 U 9000/859 1439525301 unlimited-user license

# echo $SHELL gives:
/sbin/sh