Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2013, 05: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-22-2013, 12:22 AM   #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: 26,433
Karma: 5383257
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
 
Advertisement
Reply

Tags
command line, gui, updatedb, xml

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 12:45 PM.


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