Changeset 192

Show
Ignore:
Timestamp:
04/18/08 14:36:07
Author:
dan
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • scout/trunk/get_latest_listing.pl

    r1 r192  
    1111#    (1) Screen scrape http index listing sent by server for all HREF data 
    1212#    (2) further limit it by glob 
    13  
     13use strict; 
    1414# if debugging requested print messages to STDOUT 
     15my $debug; 
    1516if (grep /[debug|DEBUG|d]/, @ARGV) { 
    1617  $debug = 0; 
     
    1819 
    1920# add libraries needed for this function 
    20 use POSIX qw(strftime); 
     21#use POSIX qw(strftime); 
    2122 
    2223#  
    23 $now = strftime("%Y:%m:%d %H:%M:%S",gmtime); 
    24 if ($debug) { print "\n==== Starting: $now UTC ==== Perl Version: $]\n"; } 
     24#$now = strftime("%Y:%m:%d %H:%M:%S",gmtime); 
     25#if ($debug) { print "\n==== Starting: $now UTC ==== Perl Version: $]\n"; } 
    2526 
    26 $dods_url = $this_dods_url; 
    27 $dir_url = $this_dir_url; 
     27my $dods_url = $this_dods_url; 
     28my $dir_url = $this_dir_url; 
     29print( "dir_url: $dir_url"); 
     30#changed from latest.nc to old.nc 
     31$common = "latest.nc|old.nc|OVW-QS-NRT-SECOOS102-.*.nc|Tot_PWSS.*"; 
    2832 
    29 $common = "latest.nc|OVW-QS-NRT-SECOOS102-.*.nc|Tot_PWSS.*";  
     33#$common = "latest.nc|OVW-QS-NRT-SECOOS102-.*.nc|Tot_PWSS.*";  
    3034 
    3135# @latest = get_index_match($dods_url, $common); 
     
    6973    # (0) Get html document 
    7074    $doc = get($path); 
    71  
     75    print( "get_index_match::Doc: $doc\n" ); 
    7276    # some other possible html scrapes 
    7377    # @all_href = $doc =~ m{href=(.*?)>}gi;