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";
In reply to Perl LWP Router login by xubu83
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |