Rajout des arguments de fonction pour que ça fonctionne sur interruption
This commit is contained in:
parent
9a018fb8d3
commit
b7a5d05c59
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue