Click here to get back home

reading from Net::Telnet input string problem

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
reading from Net::Telnet input string problem pdc124 06-16-2006
Get Chitika Premium
Posted by pdc124 on June 16, 2006, 1:17 pm
Please log in for more thread options


Im navigating my way round a series of screens using Net::telnet.

I get intermittent errors which are due to the way data is read in, in
blocks

the end of one page is

6 - PMI Details
7 - ACP details

I can recognise this with

$matchtext='ACP';
do {$text=$t2->get;#print $text;
$names.=$text;} until ($text=~m/$matchtext/i);#print $names;

but it fails if 'ACP isnt retrieved in the same block. i tried with
what I think is the end of page string
# $matchtext='22;38'; (cant get the [ escaped )

but i get the same problem

heres an end of a page when it fails

61 72 67 65 1b 5b 31 38 3b 33 38 48 36 20 2d 20 arge.[18;38H6 -
50 4d 49 20 44 65 74 61 69 6c 73 1b 5b 31 39 3b PMI Details.[19;
33 38 48 37 20 2d 20 41 43 50 20 64 65 74 61 69 38H7 - ACP detai
6c 73 1b 5b 32 32 3b 33 37 48 5b 20 5d 1b 5b 32 ls.[22;37H[ ].[2

32 3b 33 38 48 2;38H

using

$t2->waitfor("$matchtext");

generates

missing opening delimiter of match operator in argument "ACP" given to
Net::Telnet::waitfor() at /var/www/localhost/cgi-bin/ituhdupas.pl line
107

ive also tried te matchtext string as passing ASCII but still the same
problem


Similar ThreadsPosted
HTTP::Request::Form - Problem pressing input type=image button February 1, 2005, 7:56 am
install HTML::Template - Problem reading cache file / Bad file number July 24, 2004, 7:55 pm
net::telnet problem July 23, 2004, 6:46 pm
Problem with Net::Telnet October 20, 2005, 4:19 pm
Telnet Problem December 8, 2006, 5:06 am
Net:Telnet problem with print October 20, 2005, 5:04 pm
problem in telnet using perl December 27, 2007, 11:22 pm
Telnet problem -getting timed out error - April 18, 2006, 9:15 am
Net::Telnet retrieving temporary text problem November 6, 2006, 3:32 am
XML::Twig parseurl with input Headers/XML January 16, 2005, 10:58 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap