From 72ade7d68941caa247ebe22a54e8b066aa6eb91a Mon Sep 17 00:00:00 2001 From: trotFunky Date: Wed, 13 Dec 2017 17:05:03 +0100 Subject: [PATCH] =?UTF-8?q?Script=20qui=20allume=20bien=20python=20apr?= =?UTF-8?q?=C3=A8s=20parce=20que=20c'est=20quand=20m=C3=AAme=20foutrement?= =?UTF-8?q?=20plus=20pratique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Perso/serialToCSV.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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