View Single Post
Old 12-20-2013, 09:30 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,123
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by nichtleiter View Post
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
I don't have the command: but the program you want is in: (using the Calibre command line install path)

/opt/calibre/ebook-viewer
theducks is offline   Reply With Quote