Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2019, 04:05 PM   #1
Tominator
Tominator007
Tominator began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2009
Location: Arkansas, USA
Device: PC
Command line after conversion

Does anyone know if it would be possible to create a plugin that would execute a command line command OR at least a .bat file after conversion?

I am converting large EPUB files to DOCX files and it takes longer than 30 min to an hour. I would like to setup some sort of notification system to let me know when conversion is done. A command line environment would be ideal since I can work with command lines.

For example, would like to trigger a command to send a notification to my phone, or alert sound, or to EventGhost, or custom pop-up window, etc right after conversion is completed.

I'm guessing that this would be somewhat easy but don't know how to go about it. Any help would be appreciated. Maybe this already exists but I haven't found it.

1) I'm do not know python
2) for Windows PC environment

Thank you
Tominator is offline   Reply With Quote
Old 07-18-2019, 06:55 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Two suggestions,

long shot - try converting to RTF rather than DOCX, might be faster.

Maybe you can make use of this ==>> Command Line Interface - ebook-convert.

BR
BetterRed is online now   Reply With Quote
Advert
Old 07-18-2019, 07:54 PM   #3
Tominator
Tominator007
Tominator began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2009
Location: Arkansas, USA
Device: PC
Quote:
Originally Posted by BetterRed View Post
Two suggestions,

long shot - try converting to RTF rather than DOCX, might be faster.

Maybe you can make use of this ==>> Command Line Interface - ebook-convert.

BR
Yeah, I've tried RTF. Just as slow and doesn't retain all of bookmarks, cross reference, etc. Also, the link provided is for PRE-conversion.

But thank you for your quick response.
Tominator is offline   Reply With Quote
Old 07-18-2019, 09:11 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,863
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre already does popup a system notification on conversion completion. Exactly what form that notification takes depends on your system settings.
kovidgoyal is online now   Reply With Quote
Old 07-18-2019, 10:43 PM   #5
Tominator
Tominator007
Tominator began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2009
Location: Arkansas, USA
Device: PC
Yeah, I have windows 7 so all I have is the system tray popup balloons which I haven't figured how to intercept and redirect.

I guess it isn't possible to do a window shell command from within a plugin upon conversion completion?

If it is possible, I might be able to figure it out myself. Just need a nudge in right direction.

It's not super important that I can have this done, but to make it a bit easier. This way I wouldn't have to check every 10 min to see if long conversions are done.

Thank you for the reply. Btw, wonderful piece of software.
Tominator is offline   Reply With Quote
Advert
Old 07-18-2019, 11:15 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,863
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not from a plugin, but you can do it easily enough with a trivial line patch to the calibre source code. Simply edit the file notify.py and change get_notifier() to return your own custom notifier that can do whatever you want on notifications.
kovidgoyal is online now   Reply With Quote
Old 07-18-2019, 11:19 PM   #7
Tominator
Tominator007
Tominator began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2009
Location: Arkansas, USA
Device: PC
Thanks much! Will give it a go.
Tominator is offline   Reply With Quote
Old 07-18-2019, 11:34 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,863
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And here is how to run calibre from source: https://manual.calibre-ebook.com/develop.html
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line conversion errors cptgunther Conversion 1 05-13-2016 11:21 AM
Command Line Conversion loo23 Conversion 3 04-07-2012 03:33 PM
Command-line conversion formats fnardo Conversion 1 09-01-2011 10:46 PM
Command line conversion not working rockeh Calibre 1 08-24-2010 06:23 PM
command-line conversion tools in 0.6.0? WayneD Calibre 3 06-03-2009 01:30 PM


All times are GMT -4. The time now is 02:25 AM.


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