export SANE_DEBUG_LEXMARK=255 export SANE_DEBUG_LEXMARK_LOW=255 export LD_PRELOAD=backend/.libs/libsane-lexmark.so export SANE_CONFIG_DIR=backend frontend/.libs/scanimage -d lexmark 2>lexmark-scan.log >lexmark-scan.pnm