LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 01-17-2005, 01:53 PM   #1
gian2oo1
Member
 
Registered: Oct 2004
Location: Rhode Island, USA
Distribution: Slackware... Simplicity is bliss.
Posts: 62

Rep: Reputation: 15
Sending output to mail account through cron.


Hello! I am trying to send the output of "./chkrootkit" to one of my email addresses that is not on the local server. Under the chkrootkit webpage, it states:
____________________________________________________________________________________
# Can I run chkrootkit from cron?

Yes. For example, to run chkrootkit every day at 3am and mail the output to root:

0 3 * * * (cd /path/to/chkrootkit; ./chkrootkit 2>&1 | mail -s "chkrootkit output" root)
_____________________________________________________________________________________

As you can tell, this is sending the output to the root user, but I want it sent to my email address (logs@com-tec.us) through a remote smtp server. Is this possible? I searched google and the 'mail' manual pages but I didn't see anything relevant. Thanks you any help!

--Gian
 
Old 01-17-2005, 02:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
If sendmail is properly configured invoking mail with
logs@com-tec.us instead of root should do exactly
that ....


Cheers,
Tink
 
Old 01-18-2005, 01:54 PM   #3
gian2oo1
Member
 
Registered: Oct 2004
Location: Rhode Island, USA
Distribution: Slackware... Simplicity is bliss.
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks Tink! It worked like a charm... Just had to load up sendmail as you suggested.

Thanks again!

--Gian
 
  


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
Sending system mail to other account phatboyz Linux - General 0 09-08-2005 10:17 AM
Cron mail sending using outside SMTP mail server Utah Linux - Software 6 08-24-2005 08:44 PM
Sending system log files to an e-mail account darkbluex Linux - Security 1 10-27-2004 08:37 AM
Cron sending mail to root bspicer Linux - General 2 05-01-2002 01:52 PM
Who is Cron and why is he sending me all this mail?... lhoff Linux - Newbie 3 03-06-2002 05:40 PM


All times are GMT -5. The time now is 04:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration