Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-04-2007, 09:03 AM   #1
Registered: Dec 2004
Location: Denver Colorado
Distribution: Kubuntu/Debian
Posts: 120

Rep: Reputation: 15
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

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

Last edited by Mohtek; 06-04-2007 at 09:04 AM.


fawn, fiesty, scan, workaround

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 04:19 AM
simple script spx2 Programming 19 07-10-2006 04:23 PM
Need help with a simple script shell script WindowBreaker Linux - Software 2 12-15-2005 12:45 PM
simple script hso_sof Linux - Software 2 08-25-2003 12:09 PM
Simple C Shell script is not so simple elconde Programming 2 09-16-2001 11:53 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration