Quote:
Originally Posted by enotar
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