always resend error.txt SMS
parent
0604175f3e
commit
9ea0b7fad9
|
@ -17,7 +17,7 @@ sudo service gammu-smsd stop
|
|||
########################################################################
|
||||
########################################################################
|
||||
echo "RETRY ERROR MESSAGE"
|
||||
for tosend in /home/${YOU}/.zen/SMS/PHONE/*/*.tosend.sh.error.txt; do
|
||||
for tosend in /home/${YOU}/.zen/SMS/PHONE/*/*.error.txt; do
|
||||
phonehash=$(echo "${tosend}" | cut -d '/' -f 7) && [[ $phonehash == "*" ]] && continue
|
||||
xzuid=$(cat "/home/${YOU}/.zen/SMS/PHONE/${phonehash}/xzuid.txt")
|
||||
[[ ! $xzuid ]] && echo "ERROR $tosend" && continue
|
||||
|
|
Loading…
Reference in New Issue