-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcronXRDSDMS.sh
More file actions
executable file
·39 lines (30 loc) · 918 Bytes
/
Copy pathcronXRDSDMS.sh
File metadata and controls
executable file
·39 lines (30 loc) · 918 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
#!/bin/bash -l
#
# run cron scripts
#####################################################
# Script to be called by daily cron as starxrduser
# ---------------------------------------------------
# XRD:
# - cleanXRD.py
# - dataServerCheck.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 [ "${runCronXRDSDMS}" == "off" ] ; then
exit 0
fi
#####################################################
pushd ~/SDMS > /dev/null
python cleanXRD.py > /dev/null 2>&1
python dataServerCheck.py
popd > /dev/null