sr00t
|
2011-06-13
, 15:07
|
Posts: 135 |
Thanked: 75 times |
Joined on Apr 2011
@ Buenos Aires, Argentina
|
#781
|
|
2011-06-13
, 15:15
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#782
|
sudo gainroot smscon -force init
|
2011-06-13
, 15:22
|
Posts: 135 |
Thanked: 75 times |
Joined on Apr 2011
@ Buenos Aires, Argentina
|
#783
|
It understood..
The new smscon version did not force an update of the configuration file.
Please do the following or wait for an update.
Code:sudo gainroot smscon -force init
|
2011-06-13
, 15:43
|
Posts: 200 |
Thanked: 300 times |
Joined on Nov 2009
@ The Netherlands
|
#784
|
smscon -force init
The Following 5 Users Say Thank You to digitalvoid For This Useful Post: | ||
|
2011-06-13
, 17:16
|
Posts: 200 |
Thanked: 300 times |
Joined on Nov 2009
@ The Netherlands
|
#785
|
The Following 3 Users Say Thank You to digitalvoid For This Useful Post: | ||
|
2011-06-13
, 17:25
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#786
|
|
2011-06-13
, 17:37
|
|
Posts: 411 |
Thanked: 1,105 times |
Joined on Jan 2010
@ Europe
|
#787
|
#!/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"
|
2011-06-13
, 21:49
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#788
|
@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:
Running this from the cli works perfect, running it from theCode:#!/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"
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
sudo gainroot chmod 755 /opt/smscon/smscon_script
|
2011-06-13
, 22:15
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#789
|
#!/bin/sh # smscon script (v0.8.1) # (edit below) if dpkg -l | grep smssend 1>/dev/null; then ##Read SENDERNUMBER from config file SENDERNUMBER=`awk -F' ' '$1 == "SENDERNUMBER" { print $3;exit}' /opt/smscon/smscon_config|cut -d"'" -f2` ##Send SMS if smssend package is installed # 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 " "` #echo $MCC $MNC $LAC $CELLID smssend -n $SENDERNUMBER -m "Cellid Info: MCC=$MCC; MNC=$MNC; LAC=$LAC; CELLID=$CELLID" fi
|
2011-06-13
, 22:17
|
Posts: 328 |
Thanked: 72 times |
Joined on Oct 2010
@ Venezuela
|
#790
|