Schedule sending mail of a log file content
Posted
by
user3215
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user3215
Published on 2011-03-08T12:43:51Z
Indexed on
2011/03/08
16:19 UTC
Read the original article
Hit count: 374
I have postfix mail agent installed and I've configured gmail relay and I could send mails from the terminal as below:
root@statino1:~# mail -s "subject_here" [email protected]
CC: <hit enter for empty cc>
Type the mesage here
press Ctrl+d
I have to send a log file contents as a mail and schedule it to run everyday.
How do I send log file contents as mail message, how do I automate the inputs of mail
command? so that I can schedule it. Anybody has any idea?
© Ask Ubuntu or respective owner