From b7a5d05c599ab8991098739dbfd27b2af6b83935 Mon Sep 17 00:00:00 2001 From: trotFunky Date: Mon, 15 Jan 2018 23:35:20 +0100 Subject: [PATCH] =?UTF-8?q?Rajout=20des=20arguments=20de=20fonction=20pour?= =?UTF-8?q?=20que=20=C3=A7a=20fonctionne=20sur=20interruption?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Perso/serialToCSV.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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