;+
;NAME:
;	go_seq_run_sum2
;PURPOSE:
;	Main program driver for SEQ_RUN_SUM to be run in batch to make
;	summary of last 24 hours
;HISTORY:
;	Written 5-Mar-96 by M.Morrison
;	12-Mar-96 (MDM) - Added copying of the opsdb_prep.genx file to all sites
;	15-Apr-96 (MDM) - Re-added the copying of last24hr logs to the http site
;			  (the 7-Mar mod was lost during 12-mar update)
;			7-Mar update was also going to the wrong place
;	16-Apr-96 (MDM) - Removed call to SEQ_RUN_SUM
;	 7-Aug-96 (MDM) - Removed rcp, added trig_mirror
;	 9-Nov-99 (RIB) - Removed trig_mirror command - to be run in a separate
;                         cron job.
;-
;
if (n_elements(date) eq 0) then date = ut_time()
;
sttim = fmt_tim(anytim2ints(date, off=-86400))
entim = date
outfil1 = '$MDI_CAL_INFO/last24hrs.seq_run_sum'
outfil2 = '$MDI_CAL_INFO/last24hrs.cam_run_sum'
;;seq_run_sum, sttim, entim, outfil=outfil1
cam_run_sum, sttim, entim, outfil=outfil2

;;spawn, 'trig_mirror /mdisw/dbase/cal/info
;;spawn, 'trig_mirror /mdisw/dbase/ops/ip_dep

;spawn, 'rcp -p /mdisw/dbase/cal/info/last24*run_sum    mdibbs:/mdisw/dbase/cal/info
;spawn, 'rcp -p /mdisw/dbase/cal/info/last24*run_sum    umbra:/mdisw/dbase/cal/info
;spawn, 'rcp -p /mdisw/dbase/cal/info/last24*run_sum    fault:/mdisw/dbase/cal/info

;spawn, "rsh sxt3 'rm /pore1local/etc/httpd/htdocs/MDI/ops/run_stuff/last24*'"
;spawn, 'rcp -p /mdisw/dbase/cal/info/last24*run_sum    sxt3:/pore1local/etc/httpd/htdocs/MDI/ops/run_stuff

;spawn, 'rcp -p /mdisw/dbase/ops/ip_dep/opsdb_prep.genx    mdibbs:/mdisw/dbase/ops/ip_dep
;spawn, 'rcp -p /mdisw/dbase/ops/ip_dep/opsdb_prep.genx    umbra:/mdisw/dbase/ops/ip_dep
;spawn, 'rcp -p /mdisw/dbase/ops/ip_dep/opsdb_prep.genx    fault:/mdisw/dbase/ops/ip_dep

end
