Script qui modifie le nom pour direct avoir les PID
This commit is contained in:
parent
72ade7d689
commit
ae64313ece
1 changed files with 10 additions and 4 deletions
|
@ -6,12 +6,18 @@ boucle=true
|
|||
|
||||
stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok
|
||||
|
||||
rm -f ./serialOutput/serialOutput.csv
|
||||
touch ./serialOutput/serialOutput.csv
|
||||
if [ $# -eq 3 ]; then
|
||||
fileName="./serialOutput/serialOutput-"$1","$2","$3".csv"
|
||||
else
|
||||
fileName="./serialOutput/serialOutput.csv"
|
||||
fi
|
||||
|
||||
rm -f $fileName
|
||||
touch $fileName
|
||||
|
||||
while $boucle; do
|
||||
read line < /dev/ttyACM0
|
||||
echo $line >> ./serialOutput/serialOutput.csv
|
||||
echo $line >> $fileName
|
||||
done
|
||||
|
||||
python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py
|
||||
python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py $1 $2 $3
|
Loading…
Add table
Reference in a new issue