loosely-coupled-dss-extended/analysis/scheduler/analysis.sh

18 lines
425 B
Bash
Raw Normal View History

2021-06-08 09:58:37 +02:00
#!/usr/bin/env bash
wai=$(dirname $(readlink -f "$0")) # Current script directory
log=$1
out=$2
# Generate csv
2021-06-08 11:59:26 +02:00
cat $log | $wai/wakeup.awk > $wai/wakeup.csv
2021-06-08 09:58:37 +02:00
cat $log | $wai/data.awk > $wai/data.csv
cat $log | $wai/hint.awk > $wai/hint.csv
cat $log | $wai/hint_fw.awk > $wai/hint_fw.csv
2021-06-08 11:59:26 +02:00
cd $wai
Rscript ./wakeup.R &> /dev/null || { echo "Schduler data analysis failed"; exit 1; }
cd - > /dev/null
2021-06-08 09:58:37 +02:00
mv $wai/schedule.png $out