View Single Post
Old 12-20-2013, 09:18 AM   #1
nichtleiter
Junior Member
nichtleiter began at the beginning.
 
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.*\[(.*?)\]/')"
I would like to know how one of those experts around here would open a book from command line or whether i have missed a point in the calibre documentation which just states how to view a book from the database from command line!?

Thanks in advance and best regards
nichtleiter is offline   Reply With Quote