Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2013, 04:01 PM   #1
riksaga
Junior Member
riksaga began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2013
Device: kobo vox
command line vs gui db update discrepancy -maybe?

Hi,

Wasn't sure where to post my issue.

Im running calibre 0.8.83 on ubuntu 12.04 lts.

I wanted a headless calibre server so I added the following script while calibre-server -- daemon runs in the background.

The script appears to run without error and downloads & produces the correct files and the server updates.

************************************************** **************
#!/bin/bash
cd "/home/user/Calibre Library/calibre/"
ebook-convert "Associated Press.recipe" "Associated Press.epub"
calibredb add -r "/home/user/Calibre Library/calibre/"
************************************************** **************

Issues.
1. My ereader says the epubs are xml. The files display in web browser as xml

2. I noticed a copy of the epub files, without a descriptive folder are left in /Home/user/Calibre Library/calibre/ however When the calibredb -add is run a proper folder with the epub file in it is created.
- changed the download directory but then calibredb -add cannot find the epub files and the folder+epub is not created.

3. Leaving a copy of the epub file in the ~/calibre library/calibre/ I kill the calibre-server, start the gui server, kill the gui, and start calibre-server and the files are now published as proper epub files.

The epubs are correct and the gui points the server at the epubs. Any idea why the command line server points to xml files instead of the epubs?

any help is appreciated
riksaga is offline   Reply With Quote
Old 03-21-2013, 11:22 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1) Dont use the distro provided calibre package, use the official binary
2) Dont create files inside your calibre library, create them in a temp folder, add them using calibredb add and then delete the temp folder.
kovidgoyal is offline   Reply With Quote
Advert
Reply

Tags
command line, gui, updatedb, xml


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line - HOW? bookfanmd Calibre 19 01-12-2013 09:17 AM
Calibre Server runs on command line, fails in GUI gregoryx Calibre 0 08-21-2011 06:14 PM
Problem updating metadata (using mobi2mobi command line and gui) whitearrow Kindle Formats 3 12-05-2009 07:07 PM
Why use the command line? slantybard Calibre 6 07-22-2009 12:17 PM
command line vs GUI (PDF->MOBI for K2) tlc Calibre 12 02-24-2009 06:20 PM


All times are GMT -4. The time now is 06:55 PM.


MobileRead.com is a privately owned, operated and funded community.