From 606b4f5b1932974495641cb5281c3023efb4ac5d Mon Sep 17 00:00:00 2001 From: trotFunky Date: Thu, 11 Jan 2018 01:59:16 +0100 Subject: [PATCH] =?UTF-8?q?Modification=20de=20l'interruption=20pour=20que?= =?UTF-8?q?=20=C3=A7a=20marche=20en=20fait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Perso/serialToCSV.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Perso/serialToCSV.sh b/Perso/serialToCSV.sh index 0e810d4..93e9790 100755 --- a/Perso/serialToCSV.sh +++ b/Perso/serialToCSV.sh @@ -1,7 +1,7 @@ #! /bin/bash -trap "boucle=false" INT -trap "boucle=false" TERM +trap "boucle=false ; python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py $1 $2 $3 ; exit" INT +trap "boucle=false ; python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py $1 $2 $3 ; exit" TERM boucle=true stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok @@ -18,6 +18,4 @@ touch $fileName while $boucle; do read line < /dev/ttyACM0 echo $line >> $fileName -done - -python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py $1 $2 $3 \ No newline at end of file +done \ No newline at end of file