05-04-2011, 12:19 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2011
Device: Kindle 3
|
Batch breaks after ebook-convert.exe
Hi,
just got my Kindle today and want calibre to send me news once a day. The task should run on my Windows Home Server (basically a stripped down Windows 2003 Server) I created the following three scripts: kindle-send.cmd Code:
calibre-smtp.exe -a %2 -s "%1" -r mydomain.com -u myuser -p mypass kindle-news@mydomain.com myusername@free.kindle.com "%1 News" Code:
ebook-convert.exe %1 %2 --output-profile kindle Code:
cd C:\Programme\Calibre2 del /F heise.mobi sueddeutsche.mobi standard.mobi convert.cmd derStandard.recipe standard.mobi kindle-send.cmd Standard standard.mobi convert.cmd Süddeutsche.recipe sueddeutsche.mobi kindle-send.cmd Süddeutsche sueddeutsche.mobi convert.cmd heise.recipe heise.mobi kindle-send.cmd Heise heise.mobi No error or anything. The last lines of output are: Code:
Serializing images... MOBI output written to C:\Programme\Calibre2\standard.mobi Ausgabe gespeichert in C:\Programme\Calibre2\standard.mobi C:\Programme\Calibre2> Very strange is, that if I start the send-news.cmd script in the same shell window again, it doesn't work. No output... Code:
C:\Programme\Calibre2>c:\Programme\Calibre2\send-news.cmd C:\Programme\Calibre2>c:\Programme\Calibre2\send-news.cmd C:\Programme\Calibre2>c:\Programme\Calibre2\send-news.cmd C:\Programme\Calibre2> If I start a new shell window, I can start the script there, but it fails again after the first convert. If I copy the commands one after one into a shell window, everything works fine! Any idea what is wrong here? |
05-04-2011, 05:27 PM | #2 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
I think there was something about needing to call the calibre CLI commands with "start /wait command" because of the windows shell being stupid, broken or both.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to batch-convert with ebook-convert? | cypresstwist | Conversion | 8 | 02-22-2011 09:28 AM |
Ebook-convert.exe and Win/Mac result difference | marekl | Calibre | 5 | 01-19-2011 03:18 PM |
ebook-convert won't work in a batch file since 0.6.17 | mbovenka | Calibre | 20 | 01-13-2011 07:03 PM |
Batch Convert Ebooks? | April | Workshop | 7 | 12-09-2009 03:07 AM |
Batch-convert Rocket Ebook format for GEB2150? | Fauve | Fictionwise eBookwise | 1 | 04-28-2007 05:12 PM |