View Single Post
Old 03-17-2014, 05:05 PM   #1025
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by enotar View Post
I have this but that does not launch and doesnt créate crash log.....

#!/bin/sh
export LC_ALL="en_US.UTF-8"

# we're always starting from our working directory
cd /mnt/onboard/.kobo/koreader/

# export trained OCR data directory
export TESSDATA_PREFIX="data"

# export dict directory
export STARDICT_DATA_DIR="data/dict"
# finally call reader
./reader.lua /mnt/onboard 2> crash.log
I would expect it to work. From post #1018 I take that crash.log is created, but is empty. I think, that would imply that koreader is launched and exits for some reason without having any error. From your recent post I would understand that no crash.log at all is created. This would rather suggest that the script (or at least the last line) is not executed at all.

To check whether the script is executed at all, you could replace the last line with

Code:
echo "before koreader" >> /mnt/onboard/.kobo/koreadertest.log
./reader.lua /mnt/onboard 2> crash.log
echo "after koreader" >> /mnt/onboard/.kobo/koreadertest.log

Last edited by tshering; 03-17-2014 at 05:11 PM.
tshering is offline   Reply With Quote