|
|
@ -65,11 +65,11 @@ echo "$ids" | while read -r id; do |
|
|
|
|
|
|
|
|
|
|
|
# Store the message in the log file |
|
|
|
# Store the message in the log file |
|
|
|
echo "RECIEVED" |
|
|
|
echo "RECIEVED" |
|
|
|
echo "SENDER: $number" >> $log |
|
|
|
echo "SENDER: $number" >> "$log" |
|
|
|
echo "TIME: $(date -d "$time")" >> $log |
|
|
|
echo "TIME: $(date -d "$time")" >> "$log" |
|
|
|
echo "----" >> $log |
|
|
|
echo "----" >> "$log" |
|
|
|
echo -e "$text" >> $log |
|
|
|
echo -e "$text" >> "$log" |
|
|
|
printf '\00\n' >> $log |
|
|
|
printf '\00\n' >> "$log" |
|
|
|
|
|
|
|
|
|
|
|
mmcli -m "$modem" --messaging-delete-sms="$id" |
|
|
|
mmcli -m "$modem" --messaging-delete-sms="$id" |
|
|
|
done |
|
|
|
done |
|
|
|