diff --git a/Perso/serialToCSV.sh b/Perso/serialToCSV.sh index 690242a..4e30316 100755 --- a/Perso/serialToCSV.sh +++ b/Perso/serialToCSV.sh @@ -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