#!/bin/sh # smscon script (v0.8.1) # (edit below) # get cellid codes via dbus command # MCC: Mobile Country Code; MNC: Mobile Network Code; # LAC: Local Area Code; CELLID: Cellid; EXPRESSION=`dbus-send --system --print-reply=literal --type=method_call --dest=com.nokia.phone.net /com/nokia/phone/net Phone.Net.get_registration_status` MCC=`echo $EXPRESSION | cut -f 10 -d " "` MNC=`echo $EXPRESSION | cut -f 8 -d " "` LAC=`echo $EXPRESSION | cut -f 4 -d " "` CELLID=`echo $EXPRESSION | cut -f 6 -d " "` smssend -n +49xxxxxxxxxx -m "Cellid Info: MCC=$MCC; MNC=$MNC; LAC=$LAC; CELLID=$CELLID"