View Single Post
Old 11-20-2012, 05:08 AM   #14
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: 25,358
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Or even simpler

Code:
id=`calibredb add /t/test.html --dont-notify-gui | tail -n1 | cut -d: -f2`
calibredb add_format $id someotherformat.epub
And in case you dont want to use --dont-notify-gui

Code:
id=`calibredb add /t/test.html | tail -n2 | head -n1 | cut -d: -f2`
calibredb add_format $id someotherformat.epub

Last edited by kovidgoyal; 11-20-2012 at 05:13 AM.
kovidgoyal is online now   Reply With Quote