# Solar Soft update, 5am each day
#
00 05 * * * bash --login -c "IDL_DEV=Z; NRL_LIB=\$TUB; export NRL_LIB IDL_DEV; \$SSW/gen/bin/ssw_batch go_update_ssw \$SSW/site/setup/update_ssw.log"
#
# $SMEI Software update from ips, midnight each day
#
50 23 * * * bash --login -c "rsync -av --delete ips:smei/ \$SMEI"
#
# $DAT update (excludes Nagoya forecast), 4am each day
#
00 06 * * * bash --login -c "rsync -av --delete --exclude=nagoya/slow --exclude=nagoya/fast --exclude=nagoya/john --exclude=nagoya/ooty ips:dat/ \$DAT"
#
# Copy .txt files from $HAFB (on smeidb) into $SMEIDB/cat/list (10am each day)
#
00 10 * * * bash --login -c "find \$HAFB -name \*.txt -exec cp -vpf {} \$SMEIDB/cat/list \;"
#
# Recreate frame counts from scratch and create skyd catalogues (once a month)
#
00 13 6 * * bash --login -c "IDL_DEV=Z,none; export IDL_DEV; echo smei_orbits_stat,/force,dest=\'\$SMEIDB/cat/list\' | idl -quiet; echo smei_orbits_stat,/force,mode=0,dest=\'\$SMEIDB/cat/list\' | idl -quiet; echo smei_orbits_stat,/force,mode=1,dest=\'\$SMEIDB/cat/list\' | idl -quiet; echo smei_orbits_stat,/force,mode=2,dest=\'\$SMEIDB/cat/list\' | idl -quiet; echo skyd_cat,/to_smeidb | idl -quiet; echo skyd_cat,/to_smeidb,/cam3smooth | idl -quiet"
#
# Update frame counts, 6am each day
#
00 06 * * * bash --login -c "IDL_DEV=Z,none; export IDL_DEV; echo smei_orbits_stat, /update, silent=1 | idl -quiet; echo smei_orbits_stat,/update,silent=1,mode=0 | idl -quiet; echo smei_orbits_stat,/update,silent=1,mode=1 | idl -quiet; echo smei_orbits_stat,/update,silent=1,mode=2 | idl -quiet"
#
# Update state changes, 12am each day
#
00 12 * * * bash --login -c "IDL_DEV=Z,none; export IDL_DEV; echo smei_orbits_stat,/update,/state,silent=1 | idl -quiet"
#
# Update header database and time series plots for all data
# (2006/05/19: now running weekly on local machine for each SMEIDCn drive)
#
#15 20 18 * * bash --login -c "IDL_DEV=Z,none; export IDL_DEV; echo smei_hdr_update,/all,source=\'SMEIDC?\',silent=1 | idl -quiet ; echo smei_hdr_update,/all,/plot,silent=1 | idl -quiet"
#
# Update header database on current drive
#
00 04 * * * bash --login -c "IDL_DEV=Z,none; export IDL_DEV; echo smei_hdr_update,/update,source=\'SMEIDB?\',silent=1,pscmd=\'smei_hdr_update,/update\' | idl -quiet"
#
# Update list of available skymaps $SMEIDB/cat/list/smei_sky_cnt.txt and $SMEIDB/cat/list/smei_equ_cnt.txt
# Every day at 3 am
#
03 00 * * * bash --login -c "\$JAVA/bin/java -cp \$SMEI/java/common org.skymaps.SkyMapCounter; \$JAVA/bin/java -cp \$SMEI/java/common org.skymaps.SkyMapCounter -src=\$SMEISKY0/equ -file=smei_equ_cnt.txt; \$JAVA/bin/java -cp \$SMEI/java/common org.skymaps.SkyMapCounter -src=\$SMEISKY0/ecl -file=smei_ecl_cnt.txt"
#
*/5 * * * * /home/soft/.info/info.sh
#MySQL Administrator Backup [smeiwebsite] (do not change this line)
0 20 * * 5 /usr/bin/mabackup -d /var/www/html/sqb -x smeiweback -c backup smeiwebsite
#
# Download L1A files (should be moved to smeidb after upgrading
# FC; smeidb now runs FC5)
#
0 * * * * bash --login -c "sync_l1a.sh \$(cat \$HOME/.netrc | grep celeste | gawk '{print \$4"@"\$2" " \$6}')"
#0 * * * * bash --login -c "sync_l1a.sh \$(cat \$HOME/l1a_smei.txt)"
#
# Update file with start times for SMEI orbits once a day and copy to master.
#
0 0 * * * bash --login -c "IDL_DEV=Z; export IDL_DEV; echo smei_sgp4_orbits,/remote | idl -quiet"
#
# Create new "closed shutter" calibration patterns
# This runs 10 minutes after smei_sgp4_orbits has updated the orbit start time list
# (weekly cals are made wednesday morning (UT); if there is an anneal, the post-anneal patterns
# usually is made thursday morning (UT)
#
10 0 * * 3,4 bash --login -c "IDL_DEV=Z; export IDL_DEV; echo smei_mkcal_auto, lastpat=0 | idl -quiet"
#
# Create new "on-the-fly" orbital patterns for camera 3
# (coordinate with "smei_mkbase" cronjob on smeidb, and "smei_mksky" cronjob on sun)
#
0 4 * * * bash --login -c "IDL_DEV=Z; export IDL_DEV; echo smei_mkorb_auto, threshold=750 | idl -quiet"
