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 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 08:27 PM
changing /cn@0:console file permissions ErnieG Security 4 12-04-2007 08:39 AM
Eleminating output to console pflink UNIX for Dummies Questions & Answers 3 02-27-2007 02: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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-20-2008
thomaa80 thomaa80 is offline
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.
  #2 (permalink)  
Old 11-20-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,910
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.
  #3 (permalink)  
Old 11-20-2008
thomaa80 thomaa80 is offline
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.
  #4 (permalink)  
Old 11-21-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,910
Assuming your text is stored in "tmpfile", the following with work in bash and ksh93
Code:
echo "****$(<tmpfile)****" > /dev/console
Sponsored Links
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 08:51 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