-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMGI_part2.csh
executable file
·47 lines (38 loc) · 1.17 KB
/
MGI_part2.csh
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
#!/bin/csh -fx
#
# (part 2 - run loads)
#
# BEFORE adding a call to a load:
# . Delete any "lastrun" files that may exist in the "input" directory
# . Copy any new /data/downloads files OR run mirror_wget package, if necessary
#
###----------------------###
###--- initialization ---###
###----------------------###
if ( ${?MGICONFIG} == 0 ) then
setenv MGICONFIG /usr/local/mgi/live/mgiconfig
endif
source ${MGICONFIG}/master.config.csh
setenv LOG $0.log
rm -rf ${LOG}
touch ${LOG}
date | tee -a ${LOG}
echo '--- starting part 2' | tee -a $LOG
echo 'MGD_DBNAME='$MGD_DBNAME | tee -a $LOG
echo 'MGD_DBPASSWORDFILE='$MGD_DBPASSWORDFILE | tee -a $LOG
echo 'MGD_DBSERVER='$MGD_DBSERVER | tee -a $LOG
echo 'MGD_DBUSER='$MGD_DBUSER | tee -a $LOG
#
# copy /data/downloads files needed for loads
# this only needs to happen on development servers
#
switch (`uname -n`)
case bhmgiapp14ld:
case bhmgidevapp01:
date | tee -a ${LOG}
echo 'run mirror_wget downloads' | tee -a $LOG
#scp bhmgiapp01:/data/downloads/uniprot/uniprotmus.dat /data/downloads/uniprot >>& $LOG
breaksw
endsw
date | tee -a ${LOG}
echo '--- finished part 2' | tee -a ${LOG}