Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2011, 12:19 PM   #1
j0s3f
Junior Member
j0s3f began at the beginning.
 
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"
convert.cmd:
Code:
ebook-convert.exe %1 %2 --output-profile kindle
and finally send-news.cmd:
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
Problem is, if I start the script it runs the first command of ebook-convert.com and then just breaks.
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>
It should obviously sent the standard.mobi via email and then start the next convert.

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>
Never seen anything like that before.
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?
j0s3f is offline   Reply With Quote
Old 05-04-2011, 05:27 PM   #2
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
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.
Manichean is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 03:18 PM.


MobileRead.com is a privately owned, operated and funded community.