LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Help with a simple scanner script? (https://www.linuxquestions.org/questions/programming-9/help-with-a-simple-scanner-script-559037/)

Mohtek 06-04-2007 09:03 AM

Help with a simple scanner script?
 
I have to many things on my plate, AND I want to get rid of windows...problem is a bug in the Xsane+ kubuntu Fiesty Fawn Distro. I get a black scan.

After doing some hunting, I have found the backend to scan. "scan image" I haven't read the MAN yet, just threw together a haphazard script that almost works the way I want it to.

I am going to work in 3 minutes, so I thought that I would post it up here.
Help this newbie tweak the script so that it asks the proper parameters... format, resolution, and name, and uses these parameters.
Thank you! and again, the "L" in Linux = Learning
Mohtech

Here is my script:
#!/bin/bash
sane-find-scanner
echo -n "choose a Format: "
read FORMAT
echo -n "choose a Resolution: "
read RESOLUTION
echo -n "choose a name: "
read NAME
scanimage --format $FORMAT --resolution $RESOLUTION -x 215 -y 297 > ~/Desktop/$NAME.$FORMAT


All times are GMT -5. The time now is 04:28 AM.