Skip to content

Instantly share code, notes, and snippets.

@j0hn
Created March 12, 2015 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j0hn/88e89563e11aeb0713b1 to your computer and use it in GitHub Desktop.
Save j0hn/88e89563e11aeb0713b1 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: scancan.sh <number of scans> <preparation time>"
exit
fi
echo "Waiting $2"
sleep $2
for i in $(eval echo {1..$1})
do scanimage --format=tiff > image$i.tiff && sleep 5 && echo "image $i done"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment