slow for gammu-smsd

This commit is contained in:
qo-op 2021-06-22 04:19:26 +02:00
parent 9f07411370
commit d229a00fe9
2 changed files with 5 additions and 2 deletions

View File

@ -118,11 +118,14 @@ echo "## GESTION MESSAGE VERS ${groupe}"
if [[ ! -d /home/${YOU}/.zen/SMS/SAUBOLE/${groupe} ]];
then
mkdir -p /home/${YOU}/.zen/SMS/SAUBOLE/${groupe}
sleep 3
gammu-smsd-inject TEXT "$phone" -text "Enregistrement ${groupe}"
fi
## WRITE AVIS FOR GROUPE
echo "${phone};${avis}" >> /home/${YOU}/.zen/SMS/SAUBOLE/${groupe}/AVIS
[[ ! $? == 0 ]] && echo "FAILED" && exit 1
gammu-smsd-inject TEXT "$phone" -text "Votre message à destination de $groupe est enregistré. MERCI."
sleep 5
gammu-smsd-inject TEXT "$phone" -text "Message pour $groupe bien reçu. MERCI."
exit 0

View File

@ -68,7 +68,7 @@ case "$CMD" in
echo "${MESSAGE}"
fi
## OK CMD=GROUPE suivi de message
$MY_PATH/sms/GUILDE.sh "$phone" "$CMD" &
$MY_PATH/sms/GUILDE.sh "$phone" "$CMD" > /home/pi/.zen/SMS/debug.log &
exit 0
;;
esac