ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/workflow/scripts/status_hmi.webImages
Revision: 1.1
Committed: Sun Jan 2 22:13:25 2011 UTC (12 years, 8 months ago) by phil
Branch: MAIN
CVS Tags: Ver_6-0, Ver_6-1, Ver_6-2, Ver_6-3, Ver_6-4, Ver_5-14, Ver_5-13, Ver_8-0, Ver_7-1, Ver_7-0
Log Message:
Initial commit, copied from ~phil/workflow/scripts

File Contents

# Content
1 #! /bin/csh -f
2
3 set low = 2010.02.11_00:00:00_TAI
4 set IMGROOT = /home/jsoc/hmi/images
5 #set LATESTLIST = $IMGROOT/image_times_UTC
6 set LATESTLIST = $IMGROOT/image_times
7 set prevd = 0
8 set prevt = 0
9 if (-e $LATESTLIST) then
10 set prevM = `grep M $LATESTLIST`
11 set prevdt = $prevM[2]
12 set prevd = `echo $prevdt | sed -e 's/_.*//'`
13 set prevt = `echo $prevdt | sed -e 's/.*_//'`
14 set highdate = `echo $prevd | sed -e 's/..../&./' -e 's/......./&./'`
15 set hightime = `echo $prevt | sed -e 's/../&:/' -e 's/...../&:/'`
16 set high = $highdate'_'$hightime'_TAI'
17 else
18 set high = $low
19 endif
20 echo $low >low
21 echo $high > high
22
23 set nowtxt = `date -u +%Y.%m.%d_%H:%M:%S`
24 echo $nowtxt > lastupdate
25
26 rm -f statusbusy