xubu83 has asked for the wisdom of the Perl Monks concerning the following question:
I am learning Perl. At this time i am experimenting with Perl module LWP. I wrote a script that is able to login to my router. I want the script to notify me if the login to the router is succesfull, or not. Some suggestions?
I got this so far:
#!/usr/bin/perl -w use strict; use LWP; my $browser = LWP::UserAgent->new; $browser -> agent("RouterBot/1.1 "); $browser -> credentials('192.168.1.1','TEL','admin' => 'pass'); $browser -> timeout(10); print "Connecting to router:\t(192.168.1.1)\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl LWP Router login
by Anonymous Monk on May 18, 2015 at 01:31 UTC | |
by xubu83 (Initiate) on May 19, 2015 at 14:26 UTC | |
|
Re: Perl LWP Router login
by thomas895 (Deacon) on May 18, 2015 at 01:25 UTC |