|  01-11-2011, 12:35 PM | #1 | 
| Member  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 | 
|   |   | 
|  01-11-2011, 12:40 PM | #2 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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
		 | 
|   |   | 
|  01-11-2011, 12:48 PM | #3 | 
| Connoisseur  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.
		 | 
|   |   | 
|  01-11-2011, 12:51 PM | #4 | 
| Member  Posts: 23 Karma: 10 Join Date: Sep 2010 Device: galaxy | 
			
			Helo, Thanks for the answer. I think i can go on  greetings gucky | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  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 |