orchestrator.sh (launcher script)

Description

The orchestrator.sh script is a launcher for running:

Below is the code of this launcher:

#!/bin/bash
source /data/venv/bin/activate
cd /data/deephunter/
/data/venv/bin/python3 manage.py runscript vulnerable_driver_name_detected_loldriver
/data/venv/bin/python3 manage.py runscript campaign
/data/venv/bin/python3 manage.py runscript review
deactivate
  • campaign.py: Daily campaigns script, started from orchestrator.sh. It relies on the runscript command of the django-extensions package.

Crontab

It is recommended to schedule it using cron jobs to automate the backup process. An example is shown below.

# m h  dom mon dow   command
1  0 * * *      /data/deephunter/qm/scripts/orchestrator.sh