LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2009, 01:29 PM   #1
nootkan
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Rep: Reputation: 0
Emailing files from the root to an email address


I was wondering what the command was to send a file that I saved in my /tmp/ directory to an email address as an attachment. I tried using this mail -s "rkhunter debug" -a /tmp/rkhunter-debug.GZqGg25243 address@myemail.com

I recieved this response and I'm not sure which option is the right one to use as none of the recommended ones worked either.
mail: invalid option -- a
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
[-- sendmail-options ...]
mail [-iInNv] -f [name]
mail [-iInNv] [-u user]

Thanks in advance.
 
Old 10-29-2009, 02:00 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Duplicate post
see
http://www.linuxquestions.org/questi...ddress-765370/
 
  


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
Urgent! Change destination email address in monit and sendmail configuration files jenniekingsland Linux - Newbie 6 10-06-2008 05:38 AM
change root / other users email address walidaly Linux - Software 3 03-20-2007 08:32 PM
address book and emailing bobotoes Linux - Software 0 03-24-2005 05:22 PM
Send root mail to email address GUIPenguin Linux - General 1 03-01-2005 08:16 PM
Bash script to email setuid root files deoren LinuxQuestions.org Member Success Stories 1 01-30-2005 10:56 AM


All times are GMT -5. The time now is 03:01 PM.

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