Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2011, 04:18 PM   #1
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 324
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?
nickredding is offline   Reply With Quote
Old 07-17-2011, 04:25 PM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by nickredding View Post
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.
Corrupt? No.

Quote:
Originally Posted by nickredding View Post
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,
If your going to run ebook-convert in a batch file in XP you have to use the start command with the wait switch. If I recall correctly

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.
DoctorOhh is offline   Reply With Quote
Advert
Old 07-17-2011, 05:08 PM   #3
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 324
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.
nickredding is offline   Reply With Quote
Old 07-18-2011, 12:04 AM   #4
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
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.
itimpi is offline   Reply With Quote
Old 07-18-2011, 12:15 AM   #5
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 324
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
Quote:
Originally Posted by itimpi View Post
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.
It's not a problem with Windows 7 command line shell. I guess Microsoft fixed whatever was ailing it!
nickredding is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:55 AM.


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