Sponsored Content
Full Discussion: ksh, font colour
Top Forums Shell Programming and Scripting ksh, font colour Post 302269772 by cesarNZ on Thursday 18th of December 2008 04:10:38 PM
Old 12-18-2008
ksh, font colour

hi all,
how do i change the colour of text if i am using printf ?? in my script i am printing out response times from the server and i wanted to print out the max response time in red.


ta.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

VT100 terminal and colour

Good day all I am looking for a way to change colours in a text file that get tailed. I have tried using tput, however this does not seem to work. terminal type is using putty and vt100 emulation. Any ideas. :rolleyes: Thanks J (6 Replies)
Discussion started by: jhansrod
6 Replies

2. Shell Programming and Scripting

How to change the font colour in unix ?

Could you pls tell me how to change the font colour in unix ? What is the syntax ? (3 Replies)
Discussion started by: sars
3 Replies

3. Shell Programming and Scripting

#!/bin/sh script is in white colour

Hello friends. I realize that my question is naive, but I really want to know, why one of my scripts is in white colour (I mean letters in the body are white) while 3 residuary are multicoloured. I'm asking because I have a little problem with this particular script. It's absolutely the same as... (1 Reply)
Discussion started by: MarGur
1 Replies

4. HP-UX

How to change font and colour in mail sent from Unix

Dear All, We have following code to send mails from unix to users. We want to see few sentences of mail in bold font or to hightlight few lines in different colours. Could you please let me know how can we do it in function construct_body. ... (3 Replies)
Discussion started by: yogichavan
3 Replies

5. Shell Programming and Scripting

random colour xterm alias

I used to have this but do not know where it went - a script or an alias that: opens a new xterm window with a random background colour. I have this off "the internets" : alias xterm1="xterm ... -bg \#* printf '%02x%02x%02x' {repeat 3 times $((RANDOM%128+128))}` &" this gives me an... (2 Replies)
Discussion started by: arcadia
2 Replies

6. HP-UX

hpux top colour

Hello, is there some way to change b/w colour of top command output in hpux B.11.31 ? (1 Reply)
Discussion started by: tonijel
1 Replies

7. Programming

Cshell help with change colour in print

i want to ask how to change the colour of prompt message from use? and also how to change colour in printing........ i want to change it as blue colour and red colour, but i found many website still don't know how to do. how's the command is wrote? thz really!! (1 Reply)
Discussion started by: wendy1089
1 Replies

8. Shell Programming and Scripting

sed colour change

Hi, I am trying to write a script which will email a backup report from the server, The contents of the email will be: ---------------------- ---- -- ---- ----- ---- ------- ---- ------- ------- | | | | |Chnge|Wkng| | | | | | ... (6 Replies)
Discussion started by: Bdoydie
6 Replies
RADIUS_GET_ATTR(3)							 1							RADIUS_GET_ATTR(3)

radius_get_attr - Extracts an attribute

SYNOPSIS
mixed radius_get_attr (resource $radius_handle) DESCRIPTION
Like Radius requests, each response may contain zero or more attributes. After a response has been received successfully by radius_send_request(3), its attributes can be extracted one by one using radius_get_attr(3). Each time radius_get_attr(3) is called, it gets the next attribute from the current response. RETURN VALUES
Returns an associative array containing the attribute-type and the data, or error number <= 0. EXAMPLES
Example #1 radius_get_attr(3) example <?php while ($resa = radius_get_attr($res)) { if (!is_array($resa)) { printf("Error getting attribute: %s ", radius_strerror($res)); exit; } $attr = $resa['attr']; $data = $resa['data']; printf("Got Attr:%d %d Bytes %s ", $attr, strlen($data), bin2hex($data)); } ?> SEE ALSO
radius_put_attr(3), radius_get_vendor_attr(3), radius_put_vendor_attr(3), radius_send_request(3). PHP Documentation Group RADIUS_GET_ATTR(3)
All times are GMT -4. The time now is 07:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy