LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 06-04-2007, 09:03 AM   #1
mohtech
Member
 
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
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

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


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 02:55 PM.

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