Created
November 24, 2014 21:32
-
-
Save mattiasnorell/82730468706da9b7e9d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
from=$SMS_1_NUMBER | |
message=$SMS_1_TEXT | |
reply="" | |
if test "$message" = "Ping"; then | |
reply="Pong!" | |
else | |
reply="Y U NO PLAY PING PONG?" | |
fi | |
echo "$reply" | sudo gammu sendsms TEXT "$from" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment