Script output in Email is not showing Colored headers
Hi All
I am working on AIX 7.1 and I am trying to show an output that I get from "cat" a log file to email. However in email I get the below output:
In the script I have defined the colors as:
Below is the script I have created to send this output:
I have checked numerous threads on this forum about making sure I have right html editor and making sure the variables are defined correctly.
I have ran several scripts to try and get this to work but I am prompted with the same output.
Can anyone help?
PS. I am new to scripting.
Last edited by Corona688; 08-25-2015 at 12:31 PM..
Hi,
I am working with HP-UX 11.
I try to make an colored data output with echo.
I tried the following:
echo "\033]32m Red"
This works perfectly in my terminal.
But when I type the same at the hpterm, it does not work, the terminal just prints the complete text "\033]32m Red" without... (1 Reply)
Hi
I am running a script (which compares two directory contents) for which I am getting an output of 70 pages in which few pages are blank so I was able to delete those blank lines.
But I also want to delete the headers present for each page. can any one help me by providing the code... (1 Reply)
Hi All, is there anyway to color the output following a shell command?
For instance:
$cat somefile.txt
Hello, I am the contents of somefile.txt
I'm using zsh, with ANSI colors enabled.
Thanks! (0 Replies)
hi all -
first, huge thanks to anyone who might be able to help me out with this. it's fairly esoteric, but it seems like there has to be an answer for me...
* the environment:
mac os x 10.5.x server
communigate pro (mail server)
bash script (read on)
* the brief:
my script is... (5 Replies)
Hi,
Can anybody please help me how can we can we have the colored output using awk.
I am writing a script in solaris platform. but its not printing the colored output. its assuming hex values as character
awk -F"|" '{ print "\033
\033[1;31mabcd|efg\033[0m
\033[1;31mabcd|efg\033[0m... (1 Reply)
Hello,
I have the following input file:
auditing account: 3DTP (3dtp)
ERROR: S3 bucket "aws-origin-test1.3dstage.com" has policy statement with public grant: {"Sid":"PublicReadGetObject","Effect":"Allow","Principal":{"AWS":"*"},"Action":,"Resource":}
auditing region: eu-west-1
auditing... (5 Replies)
I'm trying to pick up some Unix SysAdmin skills on my own outside of work through the use of the "Unix and Linux System Administrators Handbook." I've found the exercises to be very beneficial, until I came to this.... "What path did the email take? To Whom was it addressed, and to whom was it... (0 Replies)
Hello scripting geeks,
I am new to scripting and facing some issues in writing the logic of the script. Request your kind help here
Actually when i run a command i get o/p as below
o/p :
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
these are hex values i guess...now i want to... (15 Replies)
Hi,
I have a test script where I am trying to make a line color in RED. It works when I execute the command from command line but when I try to send the output of the script via mailx it will not show me the color and instead show this output:
Command to send script output to email:
... (1 Reply)
Discussion started by: tkhan9
1 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)