diff --git a/sms_send_tosend.sh b/sms_send_tosend.sh index c684df3..492b0f8 100755 --- a/sms_send_tosend.sh +++ b/sms_send_tosend.sh @@ -39,11 +39,13 @@ for guidesend in /home/${YOU}/.zen/SMS/GUILDES/*/OUTPUT/*.tosend.sh; do phone=$(echo "$phonelink" | cut -d '/' -f 9) cat "${guidesend}" | sed "s/_PHONE_/${phone}/g" > /tmp/guidesend.sh && chmod +x /tmp/guidesend.sh - bash -x /tmp/guidesend.sh && mv ${guidesend} ${guidesend}.txt && rm /tmp/guidesend.sh || mv ${guidesend} ${guidesend}.error.txt + bash -x /tmp/guidesend.sh sleep 3 done + mv ${guidesend} ${guidesend}.txt && rm /tmp/guidesend.sh || mv ${guidesend} ${guidesend}.error.txt done + ## REINIT gammu-smsd spool sudo rm /var/spool/gammu/inbox/* 2>/dev/null sudo rm /var/spool/gammu/error/* 2>/dev/null