The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command display output on console and simultaneously save the command and its output satimis UNIX for Dummies Questions & Answers 7 01-25-2009 07:27 PM
changing /cn@0:console file permissions ErnieG Security 4 12-04-2007 07:39 AM
Eleminating output to console pflink UNIX for Dummies Questions & Answers 3 02-27-2007 01:37 AM
Changing stdin from file redirection to console input nauman High Level Programming 4 09-29-2001 08:42 AM
console output messages boristhespider UNIX for Dummies Questions & Answers 2 08-28-2001 06:32 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-20-2008
Registered User
 

Join Date: Nov 2008
Posts: 2
Changing the appearance of an Output in console

I want to change the appearance of a message I got in UNIX console.
Eg: In console: "no server running"
I need it as "****no server running*****".

Thanks in advance.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-20-2008
fpmurphy's Avatar
Moderator
 

Join Date: Dec 2003
Location: Florida
Posts: 1,498
You will have to find out what application is generating this message and modify that application to ouput the message in the format you require.
Reply With Quote
  #3 (permalink)  
Old 11-20-2008
Registered User
 

Join Date: Nov 2008
Posts: 2
Thanks for your reply.

I don't have privilege to change that application script so I want take the output to a file and then edit it to proper format and then display it in console.

Thanks.
Reply With Quote
  #4 (permalink)  
Old 11-21-2008
fpmurphy's Avatar
Moderator
 

Join Date: Dec 2003
Location: Florida
Posts: 1,498
Assuming your text is stored in "tmpfile", the following with work in bash and ksh93
Code:
echo "****$(<tmpfile)****" > /dev/console
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 07:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66