Reading SMS from the terminal?
#3
(10-16-2021, 08:12 AM)lacriz Wrote: I am pretty sure somebody posted the location of the text files that chatty displays (cannot find it right now). Something like a .var/chatty/... directory?

You should be able to find out which files the chatty process loads, e.g. using 'ps'.

Hope this helps

  lacriz

Looking at lsof it looks like the file I'm looking for is /home/mobian/.purple/chatty/db/chatty-history.db so I guess I need to figure out some way to read an sqlite db from the terminal

Edit: came up with this and threw it into my .zshrc, works great
Code:
alias txts="sqlite3 ~/.purple/chatty/db/chatty-history.db -box \"select datetime(messages.time, 'unixepoch') AS time, threads.alias AS contact, replace(messages.body, char(10), ' ¶ ') AS message from messages join threads on messages.thread_id=threads.id order by time desc;\" | less -S"
  Reply


Messages In This Thread
RE: Reading SMS from the terminal? - by lacriz - 10-16-2021, 08:12 AM
RE: Reading SMS from the terminal? - by SocialNetworkingWasAMistake - 10-16-2021, 08:23 AM
RE: Reading SMS from the terminal? - by zetabeta - 10-17-2021, 08:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  after dist-upgrade, terminal is broken nelstomlinson 9 5,827 09-09-2021, 06:47 AM
Last Post: nelstomlinson
  How do you copy and paste into mobian terminal? Do you ssh instead? temp0rary 6 5,181 06-01-2021, 12:16 PM
Last Post: temp0rary
  Anyone know how to start a terminal at current dir with Nemo? rp3 6 5,247 01-19-2021, 10:04 AM
Last Post: KC9UDX
  Make 'terminal' on-screen keyboard the default 3x5co 0 1,826 12-27-2020, 05:11 PM
Last Post: 3x5co
  Terminal help noob444 4 3,965 10-25-2020, 03:56 AM
Last Post: wibble

Forum Jump:


Users browsing this thread: 1 Guest(s)