LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-08-2006, 12:27 PM   #1
stryfetew
LQ Newbie
 
Registered: Aug 2004
Posts: 11

Rep: Reputation: 0
maybe dumb question


I'm trying to find a script of somesort that will email attactments to an outside address.. i've toyed with the mail command with no success.. is there any other way? what I'm wanting to do is email log files to myself in the mornings to review...
 
Old 03-08-2006, 12:46 PM   #2
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
Question 1) can you mail to an outside address from this box right now? Question 2) have you looked at the manpages for uuencode?

If you can mail outside the box try this:

uuencode whateverlogfile whateverlogfile |mail -s whateverlogfile me@outsideemail.address

uuencode will make the logfile an attachement and mail it.
 
Old 03-08-2006, 12:49 PM   #3
stryfetew
LQ Newbie
 
Registered: Aug 2004
Posts: 11

Original Poster
Rep: Reputation: 0
I think that's it.. thanks alot man! now I gotta get it to email the log file for each day ;D thats another fun step
 
Old 03-08-2006, 12:53 PM   #4
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
Just make a cronjob

crontab -e
59 23 * * * 1-7 uuencode whateverlog whateverlog |mail -s whateverlog me@internet.com 2>/dev/null


Should do the trick, send the e-mail everyday at 2359.
 
  


Reply



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
dumb question telstar2626436 Linux - Software 3 12-19-2005 05:34 PM
this might be a dumb question ericb Slackware - Installation 9 10-09-2005 03:39 PM
dumb question Kjetil4455 Slackware 16 08-04-2003 07:52 PM
Dumb question Thetargos Linux - Software 3 05-06-2003 07:31 PM
here is a dumb question SIAS99 Linux - Newbie 6 09-29-2001 10:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:54 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
Open Source Consulting | Domain Registration