Advertisement
sidneysase

smssend.sh

Mar 27th, 2014
1,345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ -n "$1" ]; then
  4.     TO=55$1
  5. else
  6.     read -p "To ex: 8199999999: " TO
  7.     TO="55${TO}"
  8. fi
  9.  
  10. if [ -n "$2" ]; then
  11.     MSG=$2
  12. else
  13.     read -p "Message: " MSG
  14. fi
  15.  
  16. 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