View Single Post
Old 09-24-2016, 01:58 AM   #1
mrdrew
Junior Member
mrdrew began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
Convert and copy new books to library, headless linux calibre

I'm looking for some help with a linux bash script (I think is a good solution). I'm horrible at writing this stuff, and could use help, if anyone is inclined.

I've got a folder of various types of books, mobi, epub. From time to time, I'll dump another book into this folder. I'd like to set a cron.hourly to run a bash script that:

If there’s a book in toadd-folder (
1. If it's a .mobi file
a. break
Else
a. convert to mobi
b. delete non mobi files
2. Import book to Calibre
3. Move original to alternate storage folder
)


Looks like this

Code:
xvfb-run calibredb add
interesting setup from digitalocean
mrdrew is offline   Reply With Quote