I have a Raspberry Pi (Debian/Wheezy) running Calibre (v 0.8.51) headless as a ebook server and Apache2. I want to ease the upload of ebooks to my calibre library creating a HTML form. The form submit button needs to tirgger a script doing the following:
- Pass to a bash command variables containing authors, title, ISBN, tags;
- Upload to a a specific location (/home) the file after renaming it to book.mobi;
- Run the following bash command
calibredb add --library-path=/home/calibre-library --authors "$authors" --title "$title" --tags "$tags" --isbn "$isbn" /home/book.mobi
What would be the best method to proceed?