![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| List Process with their Status. | varungupta | UNIX for Advanced & Expert Users | 2 | 03-21-2008 09:27 PM |
| Ftp Service /process Status | GaneshB | Linux | 1 | 03-10-2008 10:15 AM |
| Process Status Without Shared Memory | altinkaya | SUN Solaris | 1 | 02-27-2008 08:26 AM |
| Getting status of a signal in process? | bluehive | UNIX for Advanced & Expert Users | 2 | 01-18-2008 03:56 AM |
| Process status display | Frank2004 | AIX | 2 | 06-01-2005 06:18 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Colloring Status of process or package
Hi there all again,
I am building a menu script for viewing packages and deamons and printers and all.. I know how to collor text to red or green. But I get my results from status and put it in a array. How can I change a result that is standing in a array to build collor around it. For example STATE_XCFA[1] can be UP or DOWN If it is UP I want it to be green and if it is DOWN i want it to be red. Example so you see where I'm getting at. Echo "STATUS: ${STATE_XCFA[1]} | STATE: ${STATE_XCFA[2]} | NODE: ${STATE_XCFA[4]}|\n" Should show as follow STATUS: UP | STATE: RUNNING | NODE: HPUX006 Or STATUS: DOWN | STATE: RESTARTING | NODE: HPUX005 Thanx people! |
|
||||
|
This goes together with my other question actually.
Menu help with array selection So ummmm how do I set this up how you explain it? I am using korn I'm on a HP UX System |
|
|||||
|
Quote:
Quote:
Quote:
|
| Sponsored Links | ||
|
|