03-21-2013, 04:01 PM | #1 |
Junior Member
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 |
03-21-2013, 11:22 PM | #2 |
creator of calibre
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. |
Advert | |
|
Tags |
command line, gui, updatedb, xml |
|
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 |