-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_weekly.csh
More file actions
executable file
·59 lines (48 loc) · 1.01 KB
/
run_weekly.csh
File metadata and controls
executable file
·59 lines (48 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/csh -f
#
# run_weekly.csh
#
# Script to generate weekly public reports.
#
# Usage: run_weekly.csh
#
cd `dirname $0` && source ./Configuration
umask 002
#
# Initialize the log file.
#
setenv LOG ${REPORTLOGSDIR}/`basename $0`.log
rm -rf ${LOG}
touch ${LOG}
echo `date`: Start weekly public reports | tee -a ${LOG}
#
# unzip files
#
echo "unzipping input file ${ALLIANCE_HUMAN_FILE_GZ}" >> ${LOG}
gunzip -cf ${ALLIANCE_HUMAN_FILE_GZ} > ${ALLIANCE_HUMAN_FILE}
#
# Generate weekly public reports.
#
cd ${PUBWEEKLY}
foreach i (*.py)
echo `date`: $i | tee -a ${LOG}
${PYTHON} $i >>& ${LOG}
end
#
# Generate NCBI LinkOut files.
#
echo `date`: ncbilinkout.csh | tee -a ${LOG}
${PUBRPTS}/ncbilinkout/ncbilinkout.csh >>& ${LOG}
#
# gzip some files
#
cd ${REPORTOUTPUTDIR}
echo `date`: gzip reports | tee -a ${LOG}
foreach i (MRK_List1.rpt MRK_List2.rpt)
echo `date`: $i | tee -a ${LOG}
rm -rf $i.gz
cat $i | gzip -cf9 > $i.gz
touch $i $i.gz
end
echo `date`: End weekly public reports | tee -a ${LOG}
exit 0