#!/bin/csh # #Compare logs on lilikoi in ~ivm/tarlogs, see if there are any # with later dates than the last one in # $WEB_ROOT/Reference/IVM/survey_tape_logs/$year # Get new ones. Uses rsync. --DLM 97.08.18 # # Completed conversion to 4-char year in lilikoi filenames DLM Jan 2000 # # We are now looking in ~ivm/dvdlogs. # # Change syntax to use rsync daemon on the remote host. This avoids # rsh, which gets blocked sometimes, and ssh, which doesn't # want us to fake the password. # DLM 2003 August 14 # set year = `date +%Y` echo "Checking for new IVM dvdlogs" >! /tmp/t_ivm_msg # Previous command, using rcp for transport #/aux/solar/bin/rsync -uv --rsync-path /usr/local/bin/rsync lilikoi:/home/lilikoi/ivm/dvdlogs/dvdlog\.${year}\* /data1/WWW/Reference/IVM/dvdlogs/${year}/ >> /tmp/t_ivm_msg # New 2003 version. Note :: in source, calls daemon at port 873. /aux/solar/bin/rsync -uv --password-file /data1/WWW/Bin/rsyncwrd webmastr@lilikoi::ivmhome/dvdlogs/dvdlog\.${year}\* /data1/WWW/Reference/IVM/dvdlogs/${year}/ >> /tmp/t_ivm_msg rmail kiernan < /tmp/t_ivm_msg rmail mickey < /tmp/t_ivm_msg /usr/bin/rm /tmp/t_ivm_msg