[sane-devel] make a multi-scanner starter

Nick Andrew nick at nick-andrew.net
Tue Aug 19 08:45:20 UTC 2008

On Tue, Aug 19, 2008 at 07:48:58AM +0200, kid2k4 at email.it wrote:
> We need to make a simultaneus scanning job with 
> 2/4 scanners at the same time. How we can make this. It's possible to 
> make a script (bash?) to automaze all under linux OS.

You need to run the 'scanimage' commands in the background.

For Example:

  scanimage -d $dev1 --format pnm > scan-dev1.pnm &
  scanimage -d $dev2 --format pnm > scan-dev2.pnm &
  scanimage -d $dev3 --format pnm > scan-dev3.pnm &
  scanimage -d $dev4 --format pnm > scan-dev4.pnm &

If your scanners are on different hosts then you can run saned to
allow a central point to start all scans, still in the background,
and wait for them all to finish.


More information about the sane-devel mailing list