View Single Post
Old 12-30-2015, 10:33 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Easy. Just see the download_linux page, with a one-liner to install the latest version of calibre.
And the CLI tools run headlessly as of calibre v2.x.

Good choice running on a server laptops have the small downside of not always being turned on.



It should be as simple as:
Code:
#!/bin/bash

ebook-convert "$1.recipe" /tmp/news.mobi
calibre-smtp -s "Daily news job for $1" -a /tmp/news.recipe -r smtp.gmail.com --port 587 -u "me@gmail.com" -p "mypassword"
rm /tmp/news.mobi
Then add cron jobs for `scheduled-recipe-download.sh "My Recipe"`.


You *could* do the same on your Macbook, but if you have a dedicated server why not use it -- plus the CLI tools are a PITA on OSX because the path is deep in the application bundle.
eschwartz is offline   Reply With Quote