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