#!/bin/csh

# (2009-Jun-25) JTM: initial test version
# (2012-Aug-30) JTM: added copy of timeline to darts
# (2012-Dec-11) JTM: moved timeline copy to own script
# (2017-Sep-13) JTM: logfile name change

cd $HOME/work/localdata/sdtp/hpw/decomp_new
set logfile = quicklook_log_`date '+%Y%m%d_%H%M'`.txt
./eis_do_quicklook.py >& $logfile
if (! -z $logfile) then
    cp $logfile /soda/solarb/eis/staging/logs/quicklook
endif

# Do a little cleanup
cd /soda/solarb/eis/staging/logs/quicklook
find . -name 'quicklook*.txt' -mtime +10 -exec rm -f {} \;
