in reply to Automatically run a web page
If you need to automate web tasks, WWW::Mechanize is the way to go. It has an interface much like a command line browser. The code for your problem would be like the following :
but as long as you only need to request that one page once a day, LWP::Simple is even simpler :use strict; use WWW::Mechanize; my $agent = WWW::Mechanize->new(); $agent->get('http://webpagedirectory/web.html');
use strict; use LWP::Simple; get("http://webpagedirectory/web.html");
Both modules can be found on the http://www.cpan.org and installed through perl -MCPAN -e "install LWP::Simple" respective perl -MCPAN -e "install WWW::Mechanize".
|
|---|