Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2011, 12:35 PM   #1
gucky
Member
gucky began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2010
Device: galaxy
Perl script for ebook-convert

Hello,

I want to call the Binyry ebook-convert from within a perl Script. The Binary says that it can't find the lib libcalibre-launcger.so.
I testet the sytemcall with the absolute path in the systemcall and i added the path into the .bachrc. nothing workt.

Can anybody tell me how i can do the systemcall?

greetings

Gucky
gucky is offline   Reply With Quote
Old 01-11-2011, 12:40 PM   #2
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: 44,030
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You have to set the needed environment variables, see the bash script that is used to launch ebook-convert normally
kovidgoyal is offline   Reply With Quote
Advert
Old 01-11-2011, 12:48 PM   #3
miwie
Connoisseur
miwie began at the beginning.
 
Posts: 76
Karma: 12
Join Date: Nov 2010
Device: Android, PB Pro 602
At least in the Debian package of calibre there is a python wrapper script /usr/bin/ebook-convert which already sets up the environment. I use this script regularly to call ebook-convert from within a perl script.
miwie is offline   Reply With Quote
Old 01-11-2011, 12:51 PM   #4
gucky
Member
gucky began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2010
Device: galaxy
Helo,

Thanks for the answer. I think i can go on

greetings

gucky
gucky is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Original Lit2sb perl script RESURRECTED! nrapallo IMP 6 07-09-2010 10:17 AM
Script to convert a directory full of files? mdibella Kindle Formats 2 10-14-2008 01:21 PM
Perl Script to convert to .lrf for Sony PRS chas Sony Reader Dev Corner 7 11-22-2007 05:22 PM
Handy Perl Script to convert HTML0 files to smartquotes maggotb0y Sony Reader 0 04-12-2007 11:49 AM
gmail copy (gmcp) - Perl script to copy files to/from Gmail Colin Dunstan Lounge 0 09-04-2004 01:24 PM


All times are GMT -4. The time now is 12:04 PM.


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