Sponsored Content
Top Forums Shell Programming and Scripting Send mail with font color change Post 303037201 by sdosanjh on Thursday 25th of July 2019 01:30:51 PM
Old 07-25-2019
Quote:
Originally Posted by Corona688
The new way: <span style='color: blue;'>Hello</span>
The old way: <font color="blue">Hello</font>
The new way is preferred, but some old email clients might want the old way.
Thank you Corona688
That worked. but after little tweak. separated failures and Success in 2 different files and added <br> tag in the failure file that will highlight the failures first in the report.
This User Gave Thanks to sdosanjh For This Post:
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Font Color Change Using .profile

Does anyone know how can I change font color, background color etc for a particular user using .profile? Any help is appreciated. (0 Replies)
Discussion started by: fifo_vs_lifo23
0 Replies

2. HP-UX

How to change font and colour in mail sent from Unix

Dear All, We have following code to send mails from unix to users. We want to see few sentences of mail in bold font or to hightlight few lines in different colours. Could you please let me know how can we do it in function construct_body. ... (3 Replies)
Discussion started by: yogichavan
3 Replies

3. UNIX for Dummies Questions & Answers

How to change the font or color of text

Hi Gurus, I have a small requirement where i want to change the color & font of some text in a file. i have a file error.txt which will be created in the script using egrep. After that iam adding these lines at head & tail to that file using the following code awk 'BEGIN{print"Please... (4 Replies)
Discussion started by: pssandeep
4 Replies

4. Shell Programming and Scripting

Specifying font type and color in a shell script

Hi, I am new to shell script. Can you please tell me, whether can we specify font type and color in a shell script? If so, how to do this? Thanks in advance. (4 Replies)
Discussion started by: Vani_Govind
4 Replies

5. Shell Programming and Scripting

Change color or font when executing a script

I'm writing a simple menu script and I would like to output the whole script using background color: black AND foreground color:white. Meaning if the ssh terminal of a user is set to green for example, it will change to my desired color when menu script is executed. Once the script is exited, it... (1 Reply)
Discussion started by: lhareigh890
1 Replies

6. Shell Programming and Scripting

font color in script

i am using ubuntu 11.04 and i just finished writing a shell script but i was wanting to know if their is a way to change the font color of just one sentence? (2 Replies)
Discussion started by: hotshot247
2 Replies

7. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies

8. Shell Programming and Scripting

Identify Color and send email with same color

Hello mates, I have a requirement where in which I have to mail an output from multiple programs in the same colour as the output from shell script. I have seen a post to mail html in our forum,but my case is I have to first identify which colour the output is in an then mail it to in the ... (10 Replies)
Discussion started by: Kingcobra
10 Replies

9. UNIX for Beginners Questions & Answers

Send mail with font change

Hi All, I have a file that contains following entries. I want to highlight the line that has word as "FAILURE" while sending the email. File ------------------------------------------------------------ Job Name: ABC Start Time: 07/20/2019 07:32:39 End Time: 07/20/2019... (4 Replies)
Discussion started by: sdosanjh
4 Replies
Test::LectroTest::FailureRecorder(3pm)			User Contributed Perl Documentation		    Test::LectroTest::FailureRecorder(3pm)

NAME
Test::LectroTest::FailureRecorder - Records/plays failures for regression testing SYNOPSIS
use Test::LectroTest::Recorder; my $recorder = Test::LectroTest::Recorder->new("storage_file.txt"); my $recorder->record_failure_for_property( "property name", $input_hashref_from_counterexample ); my $failures = $recorder->get_failures_for_property("property name"); for my $input_hashref (@$failures) { # do something with hashref } DESCRIPTION
This module provides a simple means of recording property-check failures so they can be reused as regression tests. You do not need to use this module yourself because the higher-level LectroTest modules will use it for you when needed. (These docs are mainly for LectroTest developers.) The basic idea is to record a failure as a pair of the form [ <property_name>, <input hash from counterexample> ] and Dump these pairs into a text file, each record terminated by blank line so that the file can be read using paragraph-slurp mode. The module provides methods to add such pairs to a recorder file and to retrieve the recorded failures by property name. It uses a cache to avoid repetitive reads. METHODS
new(storage-file) my $recorder = Test::LectroTest::Recorder->new("/path/to/storage.txt"); Creates a new recorder object and tells it to use storage-file for the reading and writing of failures. The recorder will not access the storage file until you attempt to get or record a failure. Thus it is OK to specify a storage file that does not yet exist, provided you record failures to it before you attempt to get failures from it. get_failures_for_property(propname) my $failures = $recorder->get_failures_for_property("property name"); for my $input_hashref (@$failures) { # do something with hashref while (my ($var, $value) = each %$input_hashref) { # ... } } Returns a reference to an array that contains the recorded failures for the property with the name propname. In the event no such failures exist, the array will be empty. Each failure is represented by a hash containing the inputs that caused the failure. If the recorder's storage file does not exist or cannot be opened for reading, this method dies. Thus, you should call it from within an "eval" block. record_failure_for_property(propname, input-hashref) my $recorder->record_failure_for_property( "property name", $input_hashref_from_counterexample ); Adds a failure record for the property named propname. The record captures the counterexample represented by the input-hashref. The record is immediately appended to the recorder's storage file. Returns 1 upon success; dies otherwise. If the recorder's storage file cannot be opened for writing, this method dies. Thus, you should call it from within an "eval" block. SEE ALSO
Test::LectroTest::TestRunner explains the internal testing apparatus, which uses the failure recorders to record and play back failures for regression testing. LECTROTEST HOME
The LectroTest home is http://community.moertel.com/LectroTest. There you will find more documentation, presentations, mailing-list archives, a wiki, and other helpful LectroTest-related resources. It's also the best place to ask questions. AUTHOR
Tom Moertel (tom@moertel.com) COPYRIGHT and LICENSE Copyright (c) 2004-06 by Thomas G Moertel. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.3 2007-08-30 Test::LectroTest::FailureRecorder(3pm)
All times are GMT -4. The time now is 07:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy