02-11-2015
We recognize that for some users, how to clearly write problems and requirements may be difficult. What you wrote is rather confusing as it appears to be one long sentence.
Perhaps you can re-write and clarify?
I have a log file called mylog.txt
Need to email to user joe@_._ with the log file attached
The subject of the email should be "please read this"
And the text of the message should be "_ _ _ "
And so on...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have lot .log files in a directory.I need to take the one got created today.Is there any way to get the time of creation of a file? (6 Replies)
Discussion started by: yakyaj
6 Replies
2. Shell Programming and Scripting
What is the command to empty an already existing file.
please provide me.i used Touch cmd to empty the file.but it changing the time only. (4 Replies)
Discussion started by: laknar
4 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
How to we get to know when say a new log file is created on an Unix box.
I need to trigger a process(say a script) when the new log file is created.
But i need to know by some means or generate a trigger when a new file is created????
Something like when we receive a new mail we... (1 Reply)
Discussion started by: aixjadoo
1 Replies
4. Shell Programming and Scripting
Hi
I need to get the File creation date (MM,DD,YYYY)
using ls -ltr am getting only Month and Day only, I need year also when the file is modified.
Thanks (3 Replies)
Discussion started by: KiranKumarKarre
3 Replies
5. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The... (6 Replies)
Discussion started by: s3270226
6 Replies
6. UNIX for Advanced & Expert Users
Hi All,
We have a multi-threaded application.
During the course of action, each process creates some files. Is there any way to know which process has created a particular file ?
Ex:
Suppose we have 3 process running A, B and C in the application and some files FILE1 FILE2 FILE3 and... (4 Replies)
Discussion started by: 14341
4 Replies
7. UNIX for Dummies Questions & Answers
Hi!Can somebody tell me what command can I use to find who created a file,please? (6 Replies)
Discussion started by: teotrask
6 Replies
8. UNIX for Dummies Questions & Answers
Hi All
I use solaris 9 and just realised my opt volume has grown to 99%. How can I find out which file was created on the opt volume for it to have grown to 99%? Which command should I use since I can't go through each individual file to look at the date the files were created.
Regard (3 Replies)
Discussion started by: rahmantanko
3 Replies
9. Shell Programming and Scripting
Hi,
I have used expdp for datapump. The .dmp file is created by the "oracle" user.
my requirement is to make a zipped file of this .dmp file.
What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies
10. Shell Programming and Scripting
hi,
i have a script wrriten where there is a temporary files getting created:
echo "From:" ${usrname}@apps.mc.xerox.com>mail_txt
it was working from a long time but now there is a error creating while creating this temporary file. here is the error log for this:... (15 Replies)
Discussion started by: lovelysethii
15 Replies
LEARN ABOUT DEBIAN
lr_log2mail
LR_LOG2MAIL.IN(1) LogReport's Lire Documentation LR_LOG2MAIL.IN(1)
NAME
lr_log2mail - send a report generated from a log file by email
SYNOPSIS
lr_log2mail [options] service addresses...
lr_log2report --version
lr_log2report --help [dlf-converters|output-formats|report-templates]
OPTIONS
--help [section]
If no argument is given, prints usage information and exits. Argument can be one of the following:
dlf-converters
Prints the list of available DLF converters and exits.
output-formats
Prints the list of available output formats and exits.
report-templates
Prints the list of available report templates and exits.
--version
Prints Lire's version and exits.
--output-format|-o output format
Selects the ouput format in which to generate the report.
--template name
Uses the report configuration named name to generate the report.
--log-file logfile
Selects the log file that should be processed instead of STDIN.
--subject|-s subject
Sets the subject of the email message. Defaults to 'Your format report'.
--extra-file file
An additional text file that will be sent along the report. If the output format is txt, it will be appended to the report.
DESCRIPTION
The lr_log2mail command is similar to the lr_log2report(1) command with the difference that the report is sent by email. The log file is
read from STDIN or from the file specified using the --log-file option. The format of the log file is specified using the dlf_converter
argument. Use the --help-dlf-converters option to get a list of all currently available DLF converters. All remaining arguments are
interpreted as email addresses to which to send the report. In case the log is passed in a compressed format, it's uncompressed on the fly,
using gzip(1).
The report will be encapsulated in a MIME email appropriate for the output format. For example, ASCII reports will be sent inline, PDF
reports will be sent as a file attachment and HTML reports should appear inline in a HTML-capable mail reader.
The From and Reply-To headers in the outgoing emails are set to the values of the lr_mail_from and lr_mail_replyto configuration variables.
EXAMPLE
% lr_log2mail -s "bind8 report" bind8_query
root "Joe User <joe@example.com>" < /var/log/query.log
SEE ALSO
lr_log2report(1), lr_xml2report(1), lr_xml2mail(1), lire(1), lire(7), documentation in the Lire User Manual
AUTHORS
Joost van Baal <joostvb@logreport.org>
Francis J. Lacoste <flacoste@logreport.org>
VERSION
$Id: lr_log2mail.in,v 1.60 2006/07/23 13:16:33 vanbaal Exp $
COPYRIGHT
Copyright (C) 2000-2004 Stichting LogReport Foundation LogReport@LogReport.org
This program is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
Lire 2.1.1 2006-07-23 LR_LOG2MAIL.IN(1)