#!/bin/bash # Download the latest 5min aggregate real time vds data HOST='pems.dot.ca.gov' USER='var_johndalbey' PASSWD='carrotjuice!' ftp -n -v $HOST << EOT ascii user $USER $PASSWD prompt cd D12/Data/5min get 5minagg_latest.txt bye EOT # Extract the first line (timestamp) and save it head -1 5minagg_latest.txt > /web/webapps/realtime_VDS/dynamicdata/last_fetch_time.txt /home/jdalbey/createVDSgson.bash