12-20-2013, 10:18 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2013
Device: none
|
View books from command line
Hi all,
i use calibre on a notebook that runs linux and has not enough power for the gui. That means i have to wait at least one minute if the user interface is ready for any input. Therefore i have to use the command line tools. Adding, removing and searching for special books is no problem at all. But if i want to view a book by it's database id, i have to hack my own solution. At the moment i use sth. like this, to view a specific book. I begin with searching by keyword to get the database id. Supposing the id of the book i want to view is 713 the command i invoke is Code:
xpdf "$(calibredb list -f "formats" -w 1000 | perl -ne 'print $1 if /^713.*\[(.*?)\]/')" Thanks in advance and best regards |
12-20-2013, 10:30 AM | #2 | |
Well trained by Cats
Posts: 30,490
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
/opt/calibre/ebook-viewer |
|
Advert | |
|
12-20-2013, 02:05 PM | #3 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2013
Device: none
|
Quote:
Unfortunately i don't find an option of ebook-viewer that allows to select a specific ebook by its database id. Moreover i prefer to view an ebook with xpdf on the aforementioned notebook or alternatively with xdg-open, since its very resource friendly. I'll wait for more answers... |
|
12-20-2013, 04:05 PM | #4 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
sounds like a reasonable way to me. But you might want to ask Kovid as an enhancement for a way to open a book from calibredb.
|
Tags |
command-line |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding books from command line | chemi | Library Management | 3 | 02-25-2013 12:28 PM |
How to use the command line to move books | jorm | Development | 0 | 04-03-2012 03:22 PM |
Copy/Move books between libraries using command line tools | jameszh | Library Management | 3 | 02-15-2011 10:02 AM |
adding books via command line in msdos batch | FlaKate | Calibre | 1 | 12-25-2009 02:12 AM |
Adding books from the command line | edembowski | Calibre | 1 | 08-29-2009 12:18 PM |