summaryrefslogtreecommitdiff
path: root/e3372-readsms-xmlstarlet.sh
diff options
context:
space:
mode:
Diffstat (limited to 'e3372-readsms-xmlstarlet.sh')
-rwxr-xr-x[-rw-r--r--]e3372-readsms-xmlstarlet.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/e3372-readsms-xmlstarlet.sh b/e3372-readsms-xmlstarlet.sh
index c25e94b..6b20af7 100644..100755
--- a/e3372-readsms-xmlstarlet.sh
+++ b/e3372-readsms-xmlstarlet.sh
@@ -1,6 +1,8 @@
#!/bin/bash
-MODEM_IP="192.168.9.1"
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
+. "$DIR/config.sh"
+
curl -s -X GET "http://$MODEM_IP/api/webserver/SesTokInfo" > ses_tok.xml
COOKIE=`grep "SessionID=" ses_tok.xml | cut -b 10-147`
TOKEN=`grep "TokInfo" ses_tok.xml | cut -b 10-41`