LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2011, 12:39 AM   #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, 02:23 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:06 AM
send an email of script output s_linux SUSE / openSUSE 19 07-25-2009 04:47 AM
Having a problem getting my shell script to send an email after each row. mgsmith7475 Linux - Newbie 3 04-27-2009 09:28 PM
send output of mysql query to email within same script hattori.hanzo Linux - Newbie 2 12-03-2008 04:14 AM
write a shell script to send email yenonn Programming 4 02-11-2005 11:06 PM


All times are GMT -5. The time now is 08:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration