#!/bin/bash


#### crontab:
## SHELL=/bin/bash
## BASH_ENV=/home/boss/.bashrc
##
## */15 * * * * /home/boss/daily/cmd/rundaily_cron
####

####
# Suggested installation is to create a ln -s from this file to ~boss/daily/cmd
####


###  Start logging

LOGDIR=/home/boss/daily/logs
exec >>$LOGDIR/daily.log 2<&1

#source /home/boss/.bashrc
export PATH=$PATH:/usr/local/bin

###  Use this to temporarily turn off script
#exec echo "turned off at $(date)"

###  Start Script

date=$(date)
echo "Hello from dailyrun at $date"

## echo "HOME is $HOME"
## echo "PATH is $PATH"
## echo "IDL_PATH is $IDL_PATH"
## export IDL_PATH=+/clusterfs/riemann/software/itt/idl70/lib:$IDL_PATH
## idl -e 'platelist'

setup idlspec2d trunk
/home/boss/products/Linux/idlspec2d/trunk/bin/rundaily_riemann -g
echo "Goodbye from dailyrun started at $date"
