# This script inserts new data files into the LDM product queue PATH=/home/ldm/bin:/home/ldm/wfipbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin # define the product queue procedure insert() { cd /wfipdata/private/iberdrola if havefiles NOAA ; then for f in NOAA*.csv do key=WFIP."$1"."$2"."$3".$f.$idate # insert the file into the product queue pqinsert -v -l $lfn -f EXP -p $key $f done else echo No file "$fn" fi } # main body of script # generate the date, year day and hour idate=`date -u +%Y%m%d%H%M%S%w%W` # generate the log file name lfn="$HOME/logs/pqinsert_${dates:0:8}.log" insert IBR CsiDatalogger TowerMet cle