RE: Terminal emulation scripting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Okay, here are some things I found out.

1)	Linux telnet is sending a 0x0a for the enter key
2)	Windows putty program is sending a 0x0d for the enter key
3)	Windows telnet is sending a 0x0d0a for the enter key
4)	The device (don't ask) I'm working with doesn't like the Linux
telnet

I've tried coding the expect with 0x0d:

expect ">"
send "m2"
send "\x0d"

But, this doesn't seem to work.

I'm starting to run out of ideas.


Frank M. Ramaekers Jr.
Systems Programmer                   MCP, MCP+I, MCSE & RHCE
American Income Life Insurance Co.   Phone: (254)761-6649
1200 Wooded Acres Dr.                Fax:   (254)741-5777
Waco, Texas  76710
	
-----Original Message-----
From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On
Behalf Of Max Hetrick
Sent: Wednesday, November 12, 2008 2:59 PM
To: CentOS mailing list
Subject: Re:  Terminal emulation scripting

Frank M. Ramaekers wrote:
> I need to write a script that will contact a remote system using
TELNET
> with VT52/1xx/2xx/320 and perform some operations.  I am familiar with
> TELNET but it appears that it won't work for my purposes.

Check out expect. I had to do this with some data radios as of late, and

it worked out pretty well.

<http://linux.die.net/man/1/expect>

Regards,
Max

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_____________________________________________________
This message contains information which is privileged and confidential and is solely for the use of the
intended recipient. If you are not the intended recipient, be aware that any review, disclosure,
copying, distribution, or use of the contents of this message is strictly prohibited. If you have
received this in error, please destroy it immediately and notify us at PrivacyAct@xxxxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux