1
0
Fork 0

Rajout des arguments de fonction pour que ça fonctionne sur interruption

This commit is contained in:
trotFunky 2018-01-15 23:35:20 +01:00
parent 9a018fb8d3
commit b7a5d05c59

View file

@ -1,13 +1,13 @@
#! /bin/bash
function pythonGraph {
echo "DATAEND" >> "$fileName"
python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py "$outFile" "$1"
echo "DATAEND" >> "$3"
python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py "$2" "$1"
exit
}
trap pythonGraph INT
trap pythonGraph TERM
trap "pythonGraph $1 $outFile $fileName" INT
trap "pythonGraph $1 $outFile $fileName" TERM
stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok