[gscan2pdf-help] Exit status of user defined tools?
Brought to you by:
ra28145
|
From: Alistair G. <akg...@gm...> - 2017-03-14 15:37:18
|
Hi Jeff, Is the exit status of user defined tools checked? And where does stderr go? I'm currently trying to get gscan2pdf running inside a docker image. It appears to be mostly working, I can scan, delete pages, renumber, save, etc., but attempting to running textcleaner as a user defined task fails: DEBUG - Free space in /tmp/gscan2pdf-pcQB (Mb): 42126.60546875 (warning at 10) INFO - textcleaner -e stretch -f 23 -o 6 -T /tmp/gscan2pdf-pcQB/QZp0Rf3RmN.pnm /tmp/gscan2pdf-pcQB/lPP177XrQd.pnm ERROR - Exception 425: improper image header `/tmp/gscan2pdf-pcQB/lPP177XrQd.pnm' @ error/pnm.c/ReadPNMImage/282 ERROR - Error reading /tmp/gscan2pdf-pcQB/lPP177XrQd.pnm: Exception 425: improper image header `/tmp/gscan2pdf-pcQB/lPP177XrQd.pnm' @ error/pnm.c/ReadPNMImage/282. The improper image header is raised because the output file, lPP177XrQd.pnm, is 0 bytes long. If I copy and paste the textcleaner command in a separate shell it succeeds, i.e. I can view lPP177XrQd.pnm successfully. The entire log file is 879K, but let me know if you want it. Thanks! Alistair |