cvw/bin/wrapper_nightly_runs.sh

29 lines
645 B
Bash
Raw Normal View History

#!/bin/bash
date
# Variables
LOG=$HOME/nightly-runs/logs/from_wrapper.log # you can store your log file where you would like
PYTHON_SCRIPT=$HOME/nightly-runs/cvw/bin/ # cvw can be anywhere you would like it. Make sure to point your variable there
SETUP_SCRIPT=$HOME/nightly-runs/cvw/ # cvw can be anywhere you would like it. Make sure to point your variable there
date > $LOG 2>&1
echo "Current directory"
pwd
cd $SETUP_SCRIPT
echo "Current directory"
pwd
echo "Sourcing setup_host"
2024-03-17 01:15:59 +00:00
source ./setup.sh >> $LOG 2>&1
cd $PYTHON_SCRIPT
pwd
echo "Running python file"
2024-03-17 01:15:59 +00:00
python nightly_build.py >> $LOG 2>&1
echo "Finished"