Changeset 585 for misc

Show
Ignore:
Timestamp:
09/05/06 16:21:49 (2 years ago)
Author:
mankoff
Message:

curl works now: quoting URL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • misc/gistemp/getwwwdata.pro

    r584 r585  
    1818for i=0,n_elements(id)-1 do begin 
    1919    sid = cc[i] + id[i] 
    20     sid1 = strmid(sid, 0, strlen(sid)-1) 
    2120     
    2221    URL0 = 'http://data.giss.nasa.gov/cgi-bin/gistemp/gistemp_station.py?id='+sid+'&data_set=1&num_neighbors=1' 
    23     cmd0 = 'curl ' + URL0 + ' >> /dev/null' 
     22    cmd0 = 'curl "' + URL0 + '" >> /dev/null' 
    2423    URL1 = 'http://data.giss.nasa.gov/work/gistemp/STATIONS//tmp.'+sid+'.1.1/station.txt' 
    25     cmd1 = 'curl ' + URL1 + ' >> ./data/' + sid1 + '.txt' 
     24    cmd1 = 'curl "' + URL1 + '" > ./data/' + sid + '.txt' 
    2625 
    27     ;curl http://data.giss.nasa.gov/cgi-bin/gistemp/gistemp_station.py?id=222200460003&data_set=1&num_neighbors=1 
    28     ;curl http://data.giss.nasa.gov/work/gistemp/STATIONS//tmp.222200460003.1.1/station.txt 
    29     spawn, cmd0 + ';' + cmd1, out 
     26    ;curl "http://data.giss.nasa.gov/cgi-bin/gistemp/gistemp_station.py?id=222200460003&data_set=1&num_neighbors=1" 
     27    ;curl "http://data.giss.nasa.gov/work/gistemp/STATIONS//tmp.222200460003.1.1/station.txt" 
     28    spawn, cmd0 
     29    spawn, cmd1 
    3030    wait, 3 
    3131endfor