diff --git a/Perso/serialToCSV.sh b/Perso/serialToCSV.sh index aadd5df..c5778c2 100755 --- a/Perso/serialToCSV.sh +++ b/Perso/serialToCSV.sh @@ -1,13 +1,17 @@ #! /bin/bash +trap "boucle=false" INT +trap "boucle=false" TERM +boucle=true + stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok rm -f ./serialOutput/serialOutput.csv touch ./serialOutput/serialOutput.csv -while true; do +while $boucle; do read line < /dev/ttyACM0 echo $line >> ./serialOutput/serialOutput.csv -done +done python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py \ No newline at end of file