MAILTO=dorner@astro.uni-wuerzburg.de AUTOMATIONSETUP="fact.isdc" # cronjobs for user fact_opr (ISDC) on isdc-dl00 (machine for transfer) # transfer of aux data from LP to isdc-dl00 0,30 * * * * if ! ps aux | grep RsyncAuxToISDC | grep -v grep >/dev/null 2>&1 ; then /bin/nice -n 19 /usr/bin/ionice -c 3 ~/DataCheck/Transfer/RsyncAuxToISDC.sh; fi # transfer of raw data from LP to isdc-dl00 0,30 * * * * if ! ps aux | grep RsyncRawToISDC | grep -v grep >/dev/null 2>&1 ; then /bin/nice -n 19 /usr/bin/ionice -c 3 ~/DataCheck/Transfer/RsyncRawToISDC.sh; fi # do backup of auxiliary data to Wuerzburg 15,45 * * * * if ! ps aux | grep BackupAuxToWue | grep -v grep >/dev/null 2>&1 ; then /bin/nice -n 19 /usr/bin/ionice -c 3 ~/DataCheck/Transfer/BackupAuxToWue.sh; fi # do backup of raw data to Wuerzburg 15,45 * * * * /bin/nice -n 19 /usr/bin/ionice -c 3 ~/DataCheck/Transfer/BackupRawToWue.sh # fill events to DB at ETHZ 15 * * * * if ! ps aux | grep FillEvents | grep -v grep >/dev/null 2>&1 ; then ~/DataCheck/Processing/FillEvents.sh; fi 45 * * * * if ! ps aux | grep CalcSource | grep -v grep >/dev/null 2>&1 ; then ~/DataCheck/Processing/CalcSource.sh; fi 56 * * * * if ! ps aux | grep FillAnalysisResults | grep -v grep >/dev/null 2>&1 ; then ~/DataCheck/Processing/FillAnalysisResults.sh CutsLC; fi # check global log # once per day for ERROR and WARN 10 0 * * * ~/DataCheck/Monitoring/CheckLogs.sh day # once per hour for CONNECTION and DISK 10 * * * * ~/DataCheck/Monitoring/CheckLogs.sh hour 0 8,17 * * * ~/DataCheck/Monitoring/CheckStatus.sh # check which files can be deleted in La Palma 0 16 * * * ~/DataCheck/Transfer/CheckTransfer.sh # check disk space 50 * * * * ~/DataCheck/Monitoring/CheckDU.sh # rsync of the QLA results (quick rsync every 2h and all files once a day) 0 20,22,0,2,4,6,8,10 * * * ~/DataCheck/Transfer/BackupQLA.sh short 0 12 * * * ~/DataCheck/Transfer/BackupQLA.sh # cron to study the system performance and test some things */5 * * * * source ~/.bashrc ; /bin/echo -n `/bin/date +\%F\ \%T`" time for ls: ">>~/time_for_ls_isdc-dl00_new.txt;/usr/bin/time -f \%e /bin/ls >/dev/null 2>>~/time_for_ls_isdc-dl00_new.txt */5 * * * * /usr/sbin/lsof ~/DataCheck/Transfer/BackupRawToWue.sh > /dev/null # check for core-dump files 10 1 * * * num=`ls -1 /home/projects/fact_opr/Mars.svn.r19203/core* 2>/dev/null | wc -l`; if [ $num -gt 50 ]; then echo $num" core dumps found"; fi