160 char character sms cut

This commit is contained in:
qo-op 2021-06-09 04:15:29 +02:00
parent 64a94e495a
commit bef9fc2571
1 changed files with 12 additions and 1 deletions

View File

@ -120,7 +120,18 @@ Crypto Nation P2P LIBRE.
# Send response SMS
gammu-smsd-inject TEXT "$phone" -text "$MESS"
[[ -f /tmp/sms ]] && gammu-smsd-inject TEXT "$phone" -text "$(cat /tmp/sms)"
suite=$(echo $MESS | tail -c+160)
[[ $suite ]] && gammu-smsd-inject TEXT "$phone" -text "$(echo $MESS | tail -c+160)"
suite=$(echo $MESS | tail -c+160 | tail -c+160)
[[ $suite ]] && gammu-smsd-inject TEXT "$phone" -text "$(echo $MESS | tail -c+160) | tail -c+160"
if [[ -f /tmp/sms ]]; then
gammu-smsd-inject TEXT "$phone" -text "$(cat /tmp/sms)"
final=$(cat /tmp/sms | tail -c+160)
[[ $final ]] && gammu-smsd-inject TEXT "$phone" -text "$(cat /tmp/sms | tail -c+160)"
final=$(cat /tmp/sms | tail -c+160 | tail -c+160)
[[ $final ]] && gammu-smsd-inject TEXT "$phone" -text "$(cat /tmp/sms | tail -c+160 | tail -c+160)"
cd -
exit 0