
April 25th, 2000, 11:45 AM
|
|
Guest
|
|
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.
|