MozillaZine

How can I access the bookmarks from the command line?

User Help for Mozilla Firefox
(Anonymous/guest posting allowed)
Yuzem
 
Posts: 3
Joined: May 10th, 2008, 10:03 am
May 14th, 2008, 2:18 pm

Post Posted May 14th, 2008, 2:18 pm

I need to know that to add firefox 3 compatibility to an <a href="http://www.gnomefiles.org/app.php/Avatar_Factory">application</a>.

In previous version I used something like this:
egrep "imdb.com|youtube.com" "$(find ~/.mozilla/firefox/ -name 'bookmarks.html')"

That returns all bookmark for youtube and imdb but it does not work with version 3.
I know that the file now is places.sqlite

Is it possible?

trolly
Moderator

User avatar
 
Posts: 33571
Joined: August 22nd, 2005, 7:25 am
May 14th, 2008, 2:22 pm

Post Posted May 14th, 2008, 2:22 pm

http://www.sqlite.org/download.html

In the precompiled binaries section is a command line tool.
Think for yourself.
Otherwise you have to believe what other people tell you.

Yuzem
 
Posts: 3
Joined: May 10th, 2008, 10:03 am
May 14th, 2008, 3:28 pm

Post Posted May 14th, 2008, 3:28 pm

Thanks but I can get it to do what I want.

It tells me that the database is locked:
Error: database is locked
If I close firefox it tells me:
Unable to open database ".mozilla/firefox/adnu2zvf.default/places.sqlite": file is encrypted or is not a database

trolly
Moderator

User avatar
 
Posts: 33571
Joined: August 22nd, 2005, 7:25 am
May 14th, 2008, 4:10 pm

Post Posted May 14th, 2008, 4:10 pm

The windows version seems to work. :?:
Think for yourself.
Otherwise you have to believe what other people tell you.

Post a reply

Quote Selected

Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
 

Return to Firefox Support


Who is online

Users browsing this forum: Google [Bot], ralph_, RobertJ, wright76878 and 18 guests