View Single Post
Old 11-02-2010, 01:11 PM   #6
slm
Fool
slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.
 
Posts: 474
Karma: 4113712
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
Thank you, that was very helpful.

I was able to set up a modified version of the file to do some different things. In the process, a few discoveries that may help others:

1. First, I'm not sure what purpose of putting "C:\Windows\system32\shutdown.exe /h" in was, so I've omitted it. (I guess it puts the system into hibernation)

2. Second, I found "call" worked better than "start /wait" --call runs in the same process, start opens a new one.

3. I discovered a bug in calibre-smtp (sort of): if you add -v to the settings (to see the output), calibre-smtp will fail if the attached file is too big--I guess the output buffer overflows. OK, so the answer is "don't set it to -v, you idiot" but the calibre-smtp function itself probably should have a check in it that just stops outputting a file to the scree after it gets too long.
slm is offline   Reply With Quote