summaryrefslogtreecommitdiff
path: root/cron_job.sh.save
diff options
context:
space:
mode:
authorttt2017-05-13 00:29:47 +0530
committerttt2017-05-13 00:29:47 +0530
commitabf599be33b383a6a5baf9493093b2126a622ac8 (patch)
tree4c5ab6e0d935d5e65fabcf0258e4a00dd20a5afa /cron_job.sh.save
downloadSBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.gz
SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.tar.bz2
SBHS-2018-Rpi-abf599be33b383a6a5baf9493093b2126a622ac8.zip
added all server files
Diffstat (limited to 'cron_job.sh.save')
-rw-r--r--cron_job.sh.save21
1 files changed, 21 insertions, 0 deletions
diff --git a/cron_job.sh.save b/cron_job.sh.save
new file mode 100644
index 0000000..c77c897
--- /dev/null
+++ b/cron_job.sh.save
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+#find /home/vlabs/sbhs_vlabs/sbhs/ -iname \*.pyc -exec rm -rfv {} \; #to delete all .pyc files
+
+DIR="$( cd "$( dirname "$0" )" && pwd )"
+cd $DIR
+killall streamer
+source ../bin/activate
+#source ./bin/activate
+python sbhs_server/scan_machines.py
+python offline_reconnect
+python manage.py syncdb
+python manage.py migrate tables
+python manage.py migrate slot
+python manage.py initialize_machines
+python manage.py generate_checksum
+touch index.wsgi
+python log_generator.py
+date > date.txt
+sleep 2
+#python sbhs_server/load_homepage.py #commented by srikant