ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/workflow/scripts/status_offset_clock.csh
Revision: 1.1
Committed: Sun Jan 2 22:13:25 2011 UTC (12 years, 8 months ago) by phil
Content type: application/x-csh
Branch: MAIN
CVS Tags: Ver_6-0, Ver_6-1, Ver_6-2, Ver_6-3, Ver_6-4, Ver_9-1, Ver_5-14, Ver_5-13, Ver_LATEST, Ver_9-3, Ver_9-41, Ver_9-2, Ver_8-8, Ver_8-2, Ver_8-3, Ver_8-0, Ver_8-1, Ver_8-6, Ver_8-7, Ver_8-4, Ver_8-5, Ver_7-1, Ver_7-0, Ver_9-5, Ver_9-4, Ver_8-10, Ver_8-11, Ver_8-12, Ver_9-0, HEAD
Log Message:
Initial commit, copied from ~phil/workflow/scripts

File Contents

# Content
1 #! /bin/csh -f
2 # the offset clock status task simply reflects the current time offset by a fixed amount
3
4 set WFDIR = $WORKFLOW_DATA
5
6 cd $WFDIR/gates/$1
7 set NOW = `date +%Y.%m.%d_%H:%M:%S`
8 set NOW_t = `time_convert time=$NOW`
9 @ OLD_t = $NOW_t - 437752800
10 set OLD = `time_convert s=$OLD_t`
11 echo $OLD > high
12 echo $NOW > lastupdate
13 rm -f statusbusy