-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcronSDMS.sh
More file actions
executable file
·47 lines (37 loc) · 1.06 KB
/
Copy pathcronSDMS.sh
File metadata and controls
executable file
·47 lines (37 loc) · 1.06 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
#!/bin/bash
#
# run cron scripts
#####################################################
# Script to be called by daily cron.
# ---------------------------------------------------
# HPSS:
# - crawlerHPSS.py
# - inspectHPSS.py
#
#####################################################
#####################################################
# -- Source Environemnt
source ~starxrd/bin/.setXRDMongoEnv.sh
source ~starxrd/SDMS/controlSDMS.sh
#####################################################
# -- Load Modules
module load python/3.4.3
#####################################################
# -- Check if script should be run
if [ "${runCronSDMS}" == "off" ] ; then
exit 0
fi
#####################################################
# -- Check if CRON job is still running
for pid in $(pidof -x `basename $0`); do
if [ $pid != $$ ]; then
echo "Process is already running with PID $pid"
exit 0
fi
done
#####################################################
pushd ~/SDMS > /dev/null
python crawlerHPSS.py
python reportSDMS.py
python inspectHPSS.py
popd > /dev/null