The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Vim colors in HP-UX kheisler HP-UX 2 06-16-2009 05:17 PM
colors in BASH, doubt with script jaduks Shell Programming and Scripting 4 11-19-2007 05:21 AM
colors Sage3k UNIX Desktop for Dummies Questions & Answers 1 10-07-2002 04:57 PM
colors in ksh script hoang Shell Programming and Scripting 4 05-29-2002 05:14 PM
Changing korn shell script text Menu colors? darthur UNIX for Dummies Questions & Answers 6 01-20-2002 07:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-20-2007
Serious Sam Serious Sam is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 14
Colors in Ksh Script

Hi All,

is it poosible to Print the error messages in colors.., i am using KSH...,

i have tried the following,

echo "\033[34m Hi This is Sam!!! \033[0m"
Hi This is Sam!!!

But, when i tried to redirect in to a log file, i am getting as follows,

echo "\033[34m Hi This is Sam!!! \033[0m" > sam.log
view sam.log
sam.log" [Read only] 1 line, 31 characters
^[[34m Hi This is Sikki!!! ^[[0m

The colors are not coming..

Could any one help me in this? Do i need to set up any env variables..,

Thanks
Sam
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0