ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/workflow/scripts/stage_lev0_by_FSN.csh
Revision: 1.1
Committed: Thu Apr 21 23:25:48 2011 UTC (12 years, 5 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 insert

File Contents

# Content
1 #! /bin/csh -f
2
3 echo ACTIONTASK starting $0 $*
4
5 set echo
6
7 # script to stage data based on FSN with SUMS tape file ordering
8 # WANTLOW and WANTHIGH are exptected to be in FSN already.
9
10 # get calling parameters from task instance directory
11
12 set WD = $cwd
13 if (!(-e ticket)) then
14 echo FAILURE in $0, NO ticket
15 echo Current Dir is $WD
16 exit 1
17 endif
18
19 foreach ATTR (TYPE WANTLOW WANTHIGH)
20 set ATTRVAL = `grep $ATTR ticket`
21 if ($#ATTRVAL) set $ATTRVAL
22 end
23
24 set SPECIAL = `grep SPECIAL ticket`
25 foreach SPEC ($SPECIAL)
26 if ($#SPEC) set $SPEC
27 end
28
29 # This cwd is the taskid dir. The product name can be found in the associated
30 # gate dir. Follow the tree back to the gate.
31
32 set gate = `cat ../../target`
33 set product = `cat $WORKFLOW_DATA/gates/$gate/product`
34
35 $WORKFLOW_ROOT/scripts/stage_tapes_in_order.csh 10 $product'['$WANTLOW'-'$WANTHIGH']' >& stage_tapes.log
36
37 if ($?) then
38 echo $0 $* FAILED
39 exit 1
40 endif
41
42 exit 0