18 lines
711 B
Bash
Executable File
18 lines
711 B
Bash
Executable File
#!/bin/bash
|
|
################################################################################
|
|
# Author: Fred (support@qo-op.com)
|
|
# Version: 0.1
|
|
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
|
################################################################################
|
|
echo "AIDE pour ($1=phone)"
|
|
phone="$1"
|
|
phonehash=$(echo $phone | sha256sum | cut -d ' ' -f1)
|
|
SMSADMIN="$(cat /home/${YOU}/.zen/SMSADMIN)"
|
|
|
|
MESS="Zones Experimentales Précaires - GUILDES SMS 160 caracteres - ADMIN : $SMSADMIN - https://oasis.astroport.com"
|
|
|
|
echo "#!/bin/bash
|
|
sudo gammu sendsms TEXT \"$phone\" -text \"$MESS\"" > /home/${YOU}/.zen/SMS/PHONE/${phonehash}/$(date -u +%s%N | cut -b1-13).tosend.sh
|
|
|
|
exit 0
|