From: John M. <ex...@h0...> - 2003-04-08 12:39:50
|
Could use some tips on how to handle/translate non-ascii char's. I am using Expect.pm v 1.15 perl, v5.6.1 running on a Solaris 8 box. I am using expect to log into Nortel switches and I want to gather the forwarding database and vlan info. When I simply telnet into a switch, I can see the terminal screen cleared and then get text that looks like: MAC Address Table Aging Time: [ 300 seconds ] Find an Address: [ 00-00-00-00-00-00 ] Fast Aging: [ Enabled ] 00-00-86-1D-BF-BF Port: 11 00-00-86-4D-68-D4 Port: 1 etc, BUT it's really one long line with lots of special char's in it. I've tried several things including adding the line $exp->raw_pty(1); but, so far, I've been disappointed. I'm wondering if I can get Expect, IO:Stty, and/or IO:Tty to send me text that's easier to parse. -- Thx John Mahoney ex...@h0... |