[sane-devel] Re: Error during device I/O

Henning Meier-Geinitz henning@meier-geinitz.de
Thu, 18 Nov 2004 21:05:42 +0100


Hi,

On Wed, Nov 17, 2004 at 03:45:51PM -0700, t takahashi wrote:
> Oops, of course I meant to ask if you were suggesting this:
> 
>        while adf-is-full-p
>        do
>                 sleep 10
>                 scanimage ... --batch-count 1 ... > ...
>        done

Try something like this:

count=1
while \
  scanimage -v --batch=aaa--%02d--line300.pnm --batch-count=1 --batch-start=$count
do  
  sleep 10
  count=$(($count + 1))
done

Bye,
  Henning