Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
internet_connection_watchdog [17.06.2018 21:58]
Pascal Suter [SMS]
internet_connection_watchdog [17.06.2018 22:20]
Pascal Suter [SMS]
Line 40: Line 40:
   * <code bash process-sms.sh>#​!/​bin/​bash   * <code bash process-sms.sh>#​!/​bin/​bash
 for i in `seq $SMS_MESSAGES` ; do for i in `seq $SMS_MESSAGES` ; do
-    ​$numvar="​SMS_${i}_NUMBER"​ +    numvar="​SMS_${i}_NUMBER"​ 
-    ​$textvar="​SMS_${i}_TEXT";​+    textvar="​SMS_${i}_TEXT";​
     echo "​${!numvar}:​${!textvar}"​ >> /​tmp/​messages     echo "​${!numvar}:​${!textvar}"​ >> /​tmp/​messages
-    if [ "​${!textvar}"​ == "​connect ]; then+    if [ "​${!textvar}"​ == "​connect" ​]; then
       echo "​connect!"​ >> /​tmp/​messages       echo "​connect!"​ >> /​tmp/​messages
     fi     fi