-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcronSDMSHourly.sh
More file actions
executable file
·40 lines (31 loc) · 894 Bytes
/
cronSDMSHourly.sh
File metadata and controls
executable file
·40 lines (31 loc) · 894 Bytes
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
#!/bin/bash -l
#
# run cron scripts
#####################################################
# Script to be called by hourly cron.
# ---------------------------------------------------
# XRD:
# - processXRD.py
# Stager
# - stagerSDMS.py
#
#####################################################
#####################################################
# -- Source Environemnt
source ~starxrd/bin/.setXRDMongoEnv.sh
source ~starxrd/SDMS/controlSDMS.sh
#####################################################
# -- Load Modules
module load python/3.4.3
module use -a /common/star/pkg/Modules
module load xrootd
#####################################################
# -- Check if script should be run
if [ "${runCronSDMSHourly}" == "off" ] ; then
exit 0
fi
#####################################################
pushd ~/SDMS > /dev/null
python processXRD.py
python stagerSDMS.py
popd > /dev/null