1
0
Fork 0

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

This commit is contained in:
trotFunky 2020-05-17 14:26:09 +01:00
parent 25fc45855c
commit e2bf18135d

View file

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