Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -n "$1" ]; then
- TO=55$1
- else
- read -p "To ex: 8199999999: " TO
- TO="55${TO}"
- fi
- if [ -n "$2" ]; then
- MSG=$2
- else
- read -p "Message: " MSG
- fi
- echo -e "From: [Seu nome ou telefone]\nTo: ${TO}\n\n${MSG}" > /var/spool/sms/outgoing/sms.$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement