View Single Post
Old 01-09-2012, 02:10 AM   #2
avantman42
Wizard
avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.avantman42 ought to be getting tired of karma fortunes by now.
 
avantman42's Avatar
 
Posts: 1,090
Karma: 6058305
Join Date: Sep 2010
Location: UK
Device: Kindle Paperwhite
Quote:
Originally Posted by tuebl View Post
I noticed that zamzar (.com) uses calibre to convert epub into mobi so I am figuring that they are using some sort of CLI function to do it. I was wondering if there was some pre-existing code or better yet does Calibre already have the function to convert epubs to mobi from the command line?

I want to do it automatically from my website, so the GUI wont help me at all. Thanks!
The functionality is included in a standard Calibre install. The command is ebook-convert

The relevant page of the manual is: http://manual.calibre-ebook.com/cli/ebook-convert.html

You can simply call it with the file to be converted, and the file name of the converted file, but there are lots of options documented in the manual.

eg:
Code:
ebook-convert epub-book.epub converted-book.mobi
Russ
avantman42 is offline   Reply With Quote