LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2004, 05:52 AM   #1
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
scanner + email = fax?


Hey there!

I know scanner support under Linux was patchy until very recently, but maybe there is a simple way to implement this. If I want to email a scanned in document in windows, I have to wait for the scanned doc to be saved in order to then attach it to an email and send, i.e. I have to wait for the scanner to complete its work

Since Linux has a reputation for doing your work while you're away (and I can give personal examples of this), I'm hoping that there is a simple way of doing this, along the lines of

scanin --various-parameters | mailto --attachment address@mailbox.domain

or maybe

scanin --output-file=file.jpeg; mailto --attachments="file.jpeg" address@mailbox.domain

In this scenario, I could go and have coffee, knowing that faithful GNU/Linux/Perl/Python/etc. will complete the job for me.

Any suggestions? Btw, wasn't sure whether to post this in the programming section. I'm hoping the solution is going to turn out simple.

Many thanks and best wishes,

Samsara

PS: Unfortunately, googling for "email scanner" only turns up stuff about programs to detect viruses in email attachments, and googling for "scanner email fax" brings up stuff about using scanner-fax devices. Neither really help, nor did the forum search function, which turned up all sorts of interesting stuff, just not what I need. Forgive me if it's there and I didn't find it!
 
Old 01-29-2004, 07:50 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
yes, you could do that.

you just need a command line scanner (sane)
and a commade line smtp mail sender (plus access to an smtp server, usually smtp.YOUR_ISP.com)

there are many many many command line email programs, pick one (provided it supprts attachments)
 
Old 01-29-2004, 07:53 AM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
ohh, and i would recomend using a simple bash script.

#!/bin/bash

sane (parameters)

if [ if /home/user/scanned/picture.jpg ]; then

email_program (parameters) /home/user/scanned/picture.jpg

fi

that will only run the email program if the scanner completes its work, and saves a picture to email.
 
Old 01-29-2004, 10:20 AM   #4
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Original Poster
Rep: Reputation: 32
command line email programs

I found this helpful:

http://www.experts-exchange.com/Oper..._20176726.html

Best wishes,

Samsara
 
Old 01-29-2004, 10:37 AM   #5
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Original Poster
Rep: Reputation: 32
And I should say thank you. Your answers were very considerate and helpful.

Samsara
 
  


Reply


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
Email <--> fax service zoubidoo Linux - Networking 3 05-17-2005 07:55 PM
Need Ideas for setting up email scanner and spam filter on SuSE9 Jamm Linux - Software 1 05-14-2004 03:18 PM
Linux Server software recommendations firewall proxy email fax etc motiv8d Linux - Software 2 11-23-2003 01:38 PM
can't locate module scanner > how to get scanner work? b0uncer Linux - Hardware 1 10-26-2003 07:50 AM
USB HP Fax/Printer/Scanner/Copier DaFrEQ Linux - Hardware 0 10-24-2003 08:14 AM


All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration