Skip to content

Instantly share code, notes, and snippets.

@hmbr
Created October 30, 2011 23:20
Show Gist options
  • Save hmbr/1326582 to your computer and use it in GitHub Desktop.
Save hmbr/1326582 to your computer and use it in GitHub Desktop.
#!/bin/bash
device="hpljm1005:libusb:001:004";
while true;do
echo "scanning" ;
name=`date +%s` ;
scanimage -d $device -p >$name.pnm;
echo -en "\a";
convert $name.pnm $name.jpg;
rm $name.pnm;
echo "sleeping" ;
sleep 10s;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment