[sane-devel] Handling buttons
Fri, 03 May 2002 19:04:20 +0200
Dave Close wrote:
> I need to include some options of type BUTTON in a new backend. These are
> for things like calibration which take a significant time to complete.
> When I use scanimage as a test, it always goes ahead and attempts a scan
> when those options are specified. Other than using a different, possibly
> home-grown, frontend for testing, is there any standard solution?
Add option "-h" after the option of the button, then scanimage does not start a scan.
To avoid the output redirect output of scanimage to /dev/null:
scanimage --buttonfunction -h >/dev/null