1
0
Fork 0

Script qui modifie le nom pour direct avoir les PID

This commit is contained in:
trotFunky 2017-12-13 17:33:02 +01:00
parent 72ade7d689
commit ae64313ece

View file

@ -6,12 +6,18 @@ boucle=true
stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok
rm -f ./serialOutput/serialOutput.csv if [ $# -eq 3 ]; then
touch ./serialOutput/serialOutput.csv fileName="./serialOutput/serialOutput-"$1","$2","$3".csv"
else
fileName="./serialOutput/serialOutput.csv"
fi
rm -f $fileName
touch $fileName
while $boucle; do while $boucle; do
read line < /dev/ttyACM0 read line < /dev/ttyACM0
echo $line >> ./serialOutput/serialOutput.csv echo $line >> $fileName
done done
python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py python3 /home/trotfunky/Programmation/Git/Python/extraction_asserv.py $1 $2 $3