View Single Post
BluesLee's Avatar
Posts: 411 | Thanked: 1,105 times | Joined on Jan 2010 @ Europe
#787
@digitalvoid & Saturn: Many thanks for this kind of application.
Unfortunately, i have two issues:

1. Minor one: If I "Execute Script" i get two short messages that the
user script was executed. This bug was also mentioned earlier in
this thread.

2. I want corresponding GSM cellid informations via SMS, so I
tried the below using smssend via cli from the repos:

Code:
#!/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"
Running this from the cli works perfect, running it from the
test tab within the smscon gui doesnt. Is such a gsm command
for sending SMS etc blocked when I run the script within smscon?

Request: A command like COM_CELLID would be great. We
could use it with snuggle as a frontend.


Blues