![]() |
#1 |
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
|
ebook-convert corrupts Windows XP command.exe environment?
In the course of trying to make my external fix for the KIindle 3 news problem compatible with Windows XP, I discovered that ebook-convert seems to corrupt the Windows XP command.exe environment.
The symptom is that if you run ebook-convert with a recipe, it completes the download but somehow corrupts the environment in such a way that command.exe no longer runs batch files, and if ebook-convert was called within a batch file that batch file terminates immediately after ebook-convert. The built-in Windows commands still work, but no batch file will run--the command prompt simply returns as if you had only hit the Enter key if you try to run a batch file. You have to close the command window and open a new one to get back to normal batch file operation, so something got clobbered when ebook-convert ran. This doesn't happen with Windows 7. Any thoughts from someone familair with ebook-convert? |
![]() |
![]() |
![]() |
#2 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
start /wait ebook-convert.exe I believe this goes for other calibre command line tools too. Last edited by DoctorOhh; 07-18-2011 at 12:24 AM. |
||
![]() |
![]() |
Advert | |
|
![]() |
#3 |
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
|
Thanks for the quick response. Using START does indeed solve the problem.
I don't want to seem like I'm nitpicking, but the Calibre command-line commands DO clobber something in the environment if they have to run in a separate window (i.e. environment) if called from a batch file. It's also interesting that this is not required under Windows 7. I'm not suggesting anyone try to fix the code to run cleanly on XP--it's an obsolete O/S and the START work-around suffices. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I believe the problem occurs to most (if not all) program's written in Python.
Interestingly enough the problem only seems to occur with the Microsoft command line shell - third party ones do not suffer in the same way. As has been mentioned, the workaround is to use the START command to run commands. |
![]() |
![]() |
![]() |
#5 | |
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Disable Cover for Command Line ebook-convert | bcolflesh | Calibre | 9 | 02-21-2013 11:02 AM |
Batch breaks after ebook-convert.exe | j0s3f | Calibre | 1 | 05-04-2011 05:27 PM |
Ebook-convert.exe and Win/Mac result difference | marekl | Calibre | 5 | 01-19-2011 03:18 PM |
ebook-convert not recognized as a command | p3aul | Calibre | 11 | 10-11-2009 03:19 PM |
Command Line Options for ebook-convert | godel10 | Calibre | 14 | 08-08-2009 08:28 AM |