Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 25th, 2000, 04:57 AM
jochum jochum is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: In nederland
Posts: 41 jochum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 40 m 2 sec
Reputation Power: 9
I would like to know how to write a perlscript visiting a website. Not by fetch but as a 'nobody' retrieving the HTML-page (http). For example to check for changes on that page.
tnxs :0) jochum

Reply With Quote
  #2  
Old April 25th, 2000, 11:45 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
#grab.pl####################################
#!/usr/local/bin/perl
$local_dir = "/tmp/grabbed_data";
$target_file = "http://hoth.stsci.edu/man/man1/crontab.html";
use LWP::Simple;
getstore("$target_file","$local_dir/crontab.html");
#comment out the following line to run via command line
print "Content-type: text/htmlnn";
print "DONE!";
############################################
if Simple.pm not found, get it from http://www.linpro.no/lwp/libwww-perl-5.48.tar.gz
To run from command line:
perl /path/to/grab.pl

Go to the target_file's URL to find out more about crontab.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Write a Perl script activated with cron visiting a webpage?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway