In my first attempt at telneting into sun box from win98, i've been
receiving the error message : pattern match read eof at scriptName.pl line
xx ------ where xx is the login line. Unable to resolve that error
through the usual methods I tried executing the rainmaker sample in the
documentation at the end of the net::telnet module and received the same
error (this time at the "$t->waitfor('/continue:*$/);) line. I'm guessing
it's a setup error on my machine but haven't a clue where to look. Any
ideas?
(sample from the net::telnet documentation that i ran)
#!perl -w
my ($forecast, $t);
use Net::Telnet ();
$t = new Net::Telnet;
$t->open("rainmaker.wunderground.com");
## Wait for first prompt and "hit return".
$t->waitfor('/continue:.*$/');
$t->print("");
## Wait for second prompt and respond with city code.
$t->waitfor('/city code.*$/');
$t->print("BRD");
## Read and print the first page of forecast.
($forecast) = $t->waitfor('/[ \t]+press return to continue/i');
print $forecast;
exit;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]