summaryrefslogtreecommitdiff
path: root/new_cron_job.sh
blob: 0ac4e53f9fbbdc9fdc20e85047ed7238bf43fab1 (plain)
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
#!/bin/bash

# Django 1.11 compatible


find $(pwd) -iname \*.pyc -exec rm -rfv {} \; #to delete all .pyc files

DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $DIR
killall streamer
source ../venv/bin/activate
#source ./bin/activate
#python sbhs_server/scan_machines.py
bash sbhs_server/scan_rpis.sh
python manage.py send_report
#python offline_reconnect.py
python manage.py makemigrations
python manage.py migrate
python manage.py generate_checksum
touch index.wsgi
python manage.py log_generator

#python log_generator.py
date > date.txt
sleep 2