December 16, 2017, 02:41:18 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: access.log and message.log auto send to the mail  (Read 3059 times)

Offline razon_nnn

  • New Member
  • Posts: 1
access.log and message.log auto send to the mail
« on: November 22, 2008, 07:29:08 PM »
Dear All,

I am new member in linux forums. I need access.log and message.log auto send my yahoo mail.please help me.....


thanks
Nazmul

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: access.log and message.log auto send to the mail
« Reply #1 on: November 26, 2008, 09:00:22 AM »
I never did but if sendmail is configured on your server then you can send mail using following line:
Code: [Select]
/usr/sbin/sendmail address@example.com < path/to/access.log
Can do same for other files. Alternatively there is a command line email client
www.mutt.org/doc/manual/

To run the above command at periodic time, you can use cron job.
Here is a link which will explain use of cron :
unixgeeks.org/security/newbie/unix/cron-1.html

Offline linuxmuthu

  • Linux Noob !
  • *
  • Posts: 5
Re: access.log and message.log auto send to the mail
« Reply #2 on: December 28, 2008, 11:57:15 AM »
hey... dear u have already login do this site have that facility.... u just try to new login...