in reply to Re^3: WWW::Mechanize::Firefox and Net::Telnet timeout
in thread WWW::Mechanize::Firefox and Net::Telnet timeout

hello dear all s

the same here:
If it really is Net::Telnet, then you'll have to dive down:
$mech->repl->repl->client->{telnet}->timeout($new_timeout);


so the question is: do i need the Net::Telnet: http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm



What i have tried allready; here it is:


#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize::Firefox; my $mech = new WWW::Mechanize::Firefox(); open(INPUT, "<urls.txt") or die $!; while (<INPUT>) { chomp; print "$_\n"; $mech->get($_); my $png = $mech->content_as_png(); my $name = "$_"; $name =~s/^www\.//; $name .= ".png"; open(OUTPUT, ">$name"); print OUTPUT $png; sleep (5); }



Well this does not care about the size:
See the output commandline:
linux-vi17:/home/martin/perl # perl mecha_test_1.pl www.google.com www.cnn.com www.msnbc.com command timed-out at /usr/lib/perl5/site_perl/5.12.3/MozRepl/Client.pm + line 186 linux-vi17:/home/martin/perl #



This is my source ... see a snippet exampleof the sites i have in the url-list

www.google.com www.cnn.com www.msnbc.com news.bbc.co.uk www.bing.com www.yahoo.com



f it really is Net::Telnet, then you'll have to dive down:
$mech->repl->repl->client->{telnet}->timeout($new_timeout);


so the question is: do i need the Net::Telnet: http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm

what do you say!? Do i need it!?

Replies are listed 'Best First'.
Re^5: WWW::Mechanize::Firefox and Net::Telnet timeout
by Corion (Patriarch) on Feb 20, 2012 at 08:59 UTC

    Your question has nothing to do with the problem talked about here. This thread is about getting a timeout. As far as I am aware you are struggling with using the right version of Perl and getting WWW::Mechanize::Firefox installed at all, not with getting a timeout in some specific situation.

    Net::Telnet is needed by MozRepl which is needed by MozRepl::RemoteObject which is needed by WWW::Mechanize::Firefox.

    I recommend you attend a course on Perl and on Perl modules. Please stop trying nonsensical things and try to learn the concepts of Perl and Perl modules before trying to proceed further with WWW::Mechanize::Firefox.

Re^5: WWW::Mechanize::Firefox and Net::Telnet timeout
by Perlbeginner1 (Scribe) on Feb 20, 2012 at 08:51 UTC
    corion i postet this as looged out by accident i am sure you can help here.... guess so! greetings
Re^5: WWW::Mechanize::Firefox and Net::Telnet timeout
by Anonymous Monk on Feb 20, 2012 at 09:01 UTC

    what do you say!? Do i need it!?

    You're a scarecrow, you need a brain