LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2011, 11:39 PM   #1
munishwar.pratap
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
Question How to send coloured output of a shell script as email (outlook client)?


Hi,

Greetings to all!

Regarding this task, I am able to print colored output in my putty sessions using tput or ASCI codes but whenever I tried to send that output through mail command to my outlook maillox, It always goes without colored.

I need to produce those coloured output of the scripts as it is in mail.

Please help me in this.

Regards
Munish
munishwar.singh@gmail.com
 
Old 02-25-2011, 01:23 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Too my knowledge this won't work. Tput creates escape codes that work on a terminal, outlook is not a terminal....

Only thing that comes to mind (although I personally hate mail in html layout): Let your script create a mail in html format and manipulate the coloured parts that way.

- W3 - HTML Colors

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
send email to server to start shell script bic Red Hat 5 12-04-2009 09:06 AM
send an email of script output s_linux SUSE / openSUSE 19 07-25-2009 03:47 AM
Having a problem getting my shell script to send an email after each row. mgsmith7475 Linux - Newbie 3 04-27-2009 08:28 PM
send output of mysql query to email within same script hattori.hanzo Linux - Newbie 2 12-03-2008 03:14 AM
write a shell script to send email yenonn Programming 4 02-11-2005 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration