Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-29-2009, 12:29 PM   #1
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

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, 01:00 PM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Duplicate post


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 04:38 AM
change root / other users email address walidaly Linux - Software 3 03-20-2007 07:32 PM
address book and emailing bobotoes Linux - Software 0 03-24-2005 04:22 PM
Send root mail to email address GUIPenguin Linux - General 1 03-01-2005 07:16 PM
Bash script to email setuid root files deoren Member Success Stories 1 01-30-2005 09:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 AM.

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