internet_connection_watchdog

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revisionBoth sides next revision
internet_connection_watchdog [17.06.2018 21:58] – [SMS] Pascal Suterinternet_connection_watchdog [17.06.2018 22:20] – [SMS] Pascal Suter
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
  • internet_connection_watchdog.txt
  • Last modified: 17.06.2018 22:21
  • by Pascal Suter