Sponsored Content
Top Forums Shell Programming and Scripting Change text color in Korn shell to highlight Error Post 302726833 by Yoda on Monday 5th of November 2012 09:11:07 AM
Old 11-05-2012
This thread might help.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Changing korn shell script text Menu colors?

Is it possible to change the color of text in a korn shell script Menu? I can change the color of session text through my telnet client but I want to be able to change color text in the Korn shell menu to highlight certain items. (6 Replies)
Discussion started by: darthur
6 Replies

2. Linux

Korn Shell Script to change the permissions

Hi, All I am trying to change the permission for all the files in the current dir such that the user(owner) have the read write and excute permissions. When I excute the korn shell it will change the whole files and directory permissions as "rwx". Any help will be highly appreciated. Thanks (1 Reply)
Discussion started by: uhelp
1 Replies

3. UNIX for Dummies Questions & Answers

How to change the font or color of text

Hi Gurus, I have a small requirement where i want to change the color & font of some text in a file. i have a file error.txt which will be created in the script using egrep. After that iam adding these lines at head & tail to that file using the following code awk 'BEGIN{print"Please... (4 Replies)
Discussion started by: pssandeep
4 Replies

4. Shell Programming and Scripting

How to: Parse text string into variables using Korn shell

I am writing a script to keep check on free disk space, and I would like to find a way to parse $LINE (see code below) into a numeric value (for free disk space percentage) and a string value (for mount point). If possible, I would like to avoid sed or any additional use of awk since I am not very... (7 Replies)
Discussion started by: shew01
7 Replies

5. Shell Programming and Scripting

change text color in postscript file

Hi everyone, I have a program that produces postscript files on the fly The color of the files produced are in black and white I want to change the text color of postscript file as the file is being produced without having to manually go into the ps file and change it myself. Any Ideas?... (5 Replies)
Discussion started by: walforum
5 Replies

6. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies

7. Shell Programming and Scripting

How to change the color inside email using shell script?

hi, i want to send an email from unix using mailx command. mailx -s "subject" "email@abc.com" < email.txt Email.txt contains some file names that are transferred successfully and some that failed. so the files that got failed to tranfer, should be displayed in red color in the mail. is it... (1 Reply)
Discussion started by: Little
1 Replies

8. Shell Programming and Scripting

Color text on shell programming

hello i need the main reference for color code on shell programing i know a few color like: RED='\033 (2 Replies)
Discussion started by: nimafire
2 Replies

9. UNIX for Dummies Questions & Answers

Highlight text in shell o/p

Hi All, Can anyone tell me how to highlight a particular text in shell output or formattting a text in shell ? (1 Reply)
Discussion started by: prasanna2166
1 Replies

10. UNIX for Beginners Questions & Answers

Change text color from echo command?

I have a bash script that starts and stops a game among other things through in.fifo and out.fifo In game the text comes out gray . Kinda hard to see in game window . I would like to change it to purple and maybe capitalize it. #!/bin/bash #nwservctl.sh cd... (5 Replies)
Discussion started by: 222222quick
5 Replies
scdscreate(1HA) 					       Sun Cluster Commands						   scdscreate(1HA)

NAME
scdscreate - create a Sun Cluster resource type template SYNOPSIS
scdscreate -V vendor_id -T resource_type_name -a [-s] [-n RT_version] [-d working_directory] [-k | -g] DESCRIPTION
The scdscreate command creates a template for making an application highly available (HA) or scalable. This command enables you to create C-, Generic Data Service (GDS)-, or Korn shell-based templates for both network aware (client-server model) and non-network aware (client- less) applications. You can create the template in one of two fundamentally different ways: GDS scdscreate creates a set of three driving scripts that work from a single resource type SUNW.gds, which is pre- installed on the cluster. These scripts are named startRT_Name, stopRT_Name, and removeRT_Name and starts, stops, and removes an instance of that application. In this model, the implementation of the SUNW.gds resource type that is pre-installed on the cluster is immutable. Generated Source Code scdscreate creates a template for a Sun Cluster resource type, whose instantiations run under the control of the Resource Group Manager (RGM) to make the given application highly available and scalable. Either model can create templates for network aware (client-server model) and non-network aware (client-less) applications. scdscreate creates a directory of the form $vendor_id$resource_type_name under working_directory. This directory contains the driving scripts, or the generated source, binary, and package files for the resource type. scdscreate also creates a configuration file, rtconfig, in which you can store configuration information for the resource type. scdscreate allows you to create only one resource type per direc- tory. You must create different resource types in different directories. OPTIONS
The following options are supported: -a This parameter specifies that the resource type that is being created is not network aware. scdscreate disables all the networking related code in the template that is created. -n RT_version This optional parameter specifies the version of the generated resource's type. If you omit this parameter, and you're creating a C- or Korn shell-based application, the text string 1.0 is used by default. If you omit this parameter, and you're creating a GDS-based application, the RT_version string of the GDS is used by default. The RT_version distinguishes between multiple registered versions, or upgrades, of the same base resource type. You cannot include the following characters in RT_version: blank, tab, slash (/), backslash (), asterisk (*), question mark (?), comma (,), semicolon (;), left square bracket ([), or right square bracket (]). -d working_directory Creates the template for the resource type in a directory other than the current directory. If you omit this argument, scdscreate creates the template in the current directory. -g This optional parameter generates the GDS-based form of the template to make an application highly available or scalable. -k This optional parameter generates source code in Korn shell command syntax rather than in C. See ksh(1). -s This optional parameter indicates that the resource type is scalable. You can configure an instance (resource) of a scalable resource type into a failover resource group, and hence, turn off the scalability feature. If you omit this argument, scdscreate creates the template for a failover resource type. -T resource_type_name The resource type name and resource type version, in conjunction with the vendor ID, uniquely identifies the resource type that is being created. -V vendor_id The vendor ID is typically the stock symbol, or some other identifier of the vendor that is creating the resource type. scdscreate affixes the vendor ID, followed by a period (.) to the beginning of the resource type name. This syntax ensures that the resource type name remains unique if more than one vendor uses the same resource type name. EXIT STATUS
0 The command completed successfully. nonzero An error occurred. FILES
working_directory/rtconfig Contains information from the previous session and facilitates the quit and restart feature of scdscre- ate. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscdev | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
ksh(1), scdsbuilder(1HA), scdsconfig(1HA), attributes(5), rt_properties(5) Sun Cluster Data Services Developer's Guide for Solaris OS Sun Cluster 3.2 26 May 2004 scdscreate(1HA)
All times are GMT -4. The time now is 11:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy