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


  Search this Thread
Old 01-17-2005, 01:53 PM   #1
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 ( 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!

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

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
If sendmail is properly configured invoking mail with instead of root should do exactly
that ....

Old 01-18-2005, 01:54 PM   #3
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!



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 12:34 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