Reply
Thread Tools
Posts: 226 | Thanked: 270 times | Joined on Apr 2012 @ Bosnia and Herzegovina
#1
Hello everyone,

is there any way to show missed call (caller number) in terminal?

Thank you
 
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#2
You should be able to find it at the end of ~/.rtcomm-eventlogger/el-v1.db, parsing it to be human readable might be a bit problematic though
 

The Following 3 Users Say Thank You to szopin For This Useful Post:
Posts: 226 | Thanked: 270 times | Joined on Apr 2012 @ Bosnia and Herzegovina
#3
I tried it, I found this

Code:
sqlite3 /home/user/.rtcom-eventlogger/el-v1.db "select count(id) from events where event_type_id = 3"
but it doesn't work. Even if it would work, I think it only shows number of missed calls (not caller number)
 

The Following 2 Users Say Thank You to dzano For This Useful Post:
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#4
select count(id)
is probably responsible for showing the count, not sure what other options are there
 

The Following 2 Users Say Thank You to szopin For This Useful Post:
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#5
Code:
sqlite3 /home/user/.rtcom-eventlogger/el-v1.db "select remote_uid from events where event_type_id = 2"
seems to work
 

The Following 3 Users Say Thank You to szopin For This Useful Post:
Posts: 226 | Thanked: 270 times | Joined on Apr 2012 @ Bosnia and Herzegovina
#6
THANK YOU! That's it...it shows all missed calls but I will figure out something to use last one. Thanks again.
 
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#7
sqlite3 /home/user/.rtcom-eventlogger/el-v1.db "select remote_uid from events where event_type_id = 2" | tail -n 1
 

The Following 3 Users Say Thank You to szopin For This Useful Post:
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#8
Code:
sqlite3 /home/user/.rtcom-eventlogger/el-v1.db "select remote_uid from events where event_type_id = 2 order by desc limit 1"
untested but something along these lines should work
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following 5 Users Say Thank You to qwazix For This Useful Post:
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#9
Code:
sqlite3 /home/user/.rtcom-eventlogger/el-v1.db "select remote_uid from events where event_type_id = 2 order by id desc limit 1"
 

The Following 3 Users Say Thank You to szopin For This Useful Post:
Posts: 76 | Thanked: 44 times | Joined on Apr 2011 @ India
#10
Originally Posted by szopin View Post
Code:
sqlite3 /home/user/.rtcom-eventlogger/el-v1.db "select remote_uid from events where event_type_id = 2 order by id desc limit 1"
Thanks for the code but i get this error "SQL error: no such table" events"

Can anyone help with it please?
 
Reply

Tags
missed call, number, terminal


 
Forum Jump


All times are GMT. The time now is 22:32.