Sponsored Content
Top Forums Shell Programming and Scripting Differences in awk between UNIX flavours Post 21905 by pbritta on Friday 24th of May 2002 06:37:44 AM
Old 05-24-2002
Question Differences in awk between UNIX flavours

Hi,

I've been charged with the task of finding out whether the scripts which we use on our current DYNIX (Sequent) UNIX box will continue to run happily on our soon-to-be-installed Sun Solaris box.

I'm fairly certain that they'll be OK, but I've heard mutterings about awk running differently on Sun systems. All I've found out is that the tolower and toupper commands do not work because the Sun awk is from a time before awk acquired these functions.

Does anybody know whether there are any other differences in the Korn shell language between these systems, or whether Sun systems implements any other standard commands in a strange way?

Many thanks.

Phil
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Newbie question about unix flavours

Hi, I am newbie to unix. I am been immensily impressed by this forum. I have installed sun solaris in my pc and started learning unix. The question is, If i know one unix flavour (say sun solaris) is that i can claim, i know all the unix and linux flavours. Can i be able to work on other vendor... (3 Replies)
Discussion started by: Balaji
3 Replies

2. UNIX for Dummies Questions & Answers

Unix and Solaris differences

hi guys, I am the newest dumbest person who has no clue of unix and solaris. Could someone help me by telling me what the difference is? thanks... me (4 Replies)
Discussion started by: theboxer01
4 Replies

3. Post Here to Contact Site Administrators and Moderators

UNIX flavours

UNIX comes in the most widest and broadest of functionalities and versions. Might be a good idea to: 1. introduce some vendor specific forums: e.g. HP-UX, Linux, AIX etc. 2. create more forums directed at core functionalities: e.g.: networking (already there), LVM, 3rd party applications... (1 Reply)
Discussion started by: patvdv
1 Replies

4. UNIX for Dummies Questions & Answers

Solaris Unix vs HP Unix, Could someone point out the major differences.

Solaris Unix vs HP Unix, Could someone point out the major differences. I have been performing Support to Solaris Unix for about 6 years, now I am interviewing for a HP Unix position. Could someone point out the major differences? Should it be an easy transition? Thanks (1 Reply)
Discussion started by: Hack
1 Replies

5. UNIX for Dummies Questions & Answers

Different flavours of Unix

Hi all, I would like to know why is there so many different kind of unix systems like IBM AIX, SUN Solaris and so on.. What are the issues that we would considering choosing a Unix system? Newbie to Unix, thus this question (2 Replies)
Discussion started by: vincente
2 Replies

6. UNIX for Dummies Questions & Answers

Bash differences on unix's

I am using bash on two different unix versions and for some reason the commands operate slightly differently. For example, 'ls * -la' gives me an error on one unix system, but works fine on a different system. The versions of unix are actually OS x and linux, and both systems are running GNU bash... (4 Replies)
Discussion started by: bongobonga
4 Replies

7. UNIX for Advanced & Expert Users

Where to download unix not unix flavours like ubuntu, redhat etc.

I checked unix.org but did not find any link where i can download basic unix flavour. any idea from where i can download unix. thanks in advance. - nilesh (14 Replies)
Discussion started by: ynilesh
14 Replies

8. UNIX for Dummies Questions & Answers

Differences between different versions of Unix

I sent a private message to one of the administrators/moderators, but I thought I'd ask here publicly after some thought. I'm getting into Unix on my Mac (BSD). I was just wondering what the differences are between versions of Unix -- I want to learn more about it, but would it be better to... (1 Reply)
Discussion started by: Straitsfan
1 Replies

9. UNIX for Dummies Questions & Answers

UNIX vs windows, differences

Hello! Please, I am sorry, I am the absolute beginner, If I have unix as os instead of lets say windows, then can I go to INTERNET and how? Are there some other BIG differences? Many thanks!!! (1 Reply)
Discussion started by: pinklemon
1 Replies
scha_resourcegroup_get(1HA)				       Sun Cluster Commands				       scha_resourcegroup_get(1HA)

NAME
scha_resourcegroup_get - access resource group information SYNOPSIS
scha_resourcegroup_get -O optag -G group [args] DESCRIPTION
The scha_resourcegroup_get command accesses information about a resource group that is under the control of the Resource Group Manager (RGM) cluster facility. This command is intended to be used in shell script implementations of the callback methods for resource types. These resource types repre- sent services that are controlled by the cluster's RGM. This command provides the same information as the scha_resourcegroup_get(3HA) C function. Information is generated by the command to standard output (stdout) in formatted strings as described in scha_cmds(1HA). The output is a string or several strings on separate lines. The output can be stored in shell variables and parsed using shell facilities or awk(1) for further use by the script. You need solaris.cluster.resource.read role-based access control (RBAC) authorization to use this command. See rbac(5). You must also be able to assume a role to which the Sun Cluster Commands rights profile has been assigned to use this command. Authorized users can issue privileged Sun Cluster commands on the command line from the pfsh(1), pfcsh(1), or pfksh(1) profile shell. A profile shell is a special kind of shell that enables you to access privileged Sun Cluster commands that are assigned to the Sun Cluster Commands rights profile. A profile shell is launched when you run su(1M) to assume a role. You can also use pfexec(1) to issue privileged Sun Cluster com- mands. OPTIONS
The following options are supported: -G group Name of the resource group. -O optag Specifies the information that is to be accessed. Depending on the optag that you specify, you might need to include an addi- tional operand to indicate the node or zone for which information is to be retrieved. Note - optag values, such as DESIRED_PRIMARIES and FAILBACK, are not case sensitive. You can use any combination of uppercase and lowercase letters when you specify optag options. The following optag values retrieve the corresponding resource group properties. The value of the named property of the resource group is generated. The RG_STATE property refers to the value on the particular node or zone where the command is executed. AUTO_START_ON_NEW_CLUSTER DESIRED_PRIMARIES FAILBACK GLOBAL_RESOURCES_USED IMPLICIT_NETWORK_DEPENDENCIES MAXIMUM_PRIMARIES NODELIST PATHPREFIX PINGPONG_INTERVAL RESOURCE_LIST RG_AFFINITIES RG_DEPENDENCIES RG_DESCRIPTION RG_IS_FROZEN RG_MODE RG_PROJECT_NAME RG_SLM_TYPE RG_SLM_PSET_TYPE RG_SLM_CPU RG_SLM_CPU_MIN RG_STATE RG_STATE_NODE RG_SYSTEM SUSPEND_AUTOMATIC_RECOVERY Note - RG_STATE_NODE requires an unflagged argument that specifies a node or zone. This optag value generates the value of the resource group's RG_STATE property for the specified node or zone. If the unflagged argument specifies a non-global zone, the format is nodename:zonename. EXAMPLES
Example 1 A Sample Script Using scha_resourcegroup_get The following script is passed a -G argument, which provides the required resource group name. Next, the scha_resourcegroup_get command is used to get the list of resources in the resource group. #!/bin/sh while getopts G: opt do case $opt in G) group="$OPTARG";; esac done resource_list=`scha_resourcegroup_get -O Resource_list -G $group` for resource in $resource_list do printf "Group: %s contains resource: %s0 "$group" "$resource" done EXIT STATUS
The following exit status codes are returned: 0 The command completed successfully. nonzero An error occurred. Failure error codes are described scha_calls(3HA). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscdev | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ SEE ALSO
awk(1), scha_cmds(1HA), scha_calls(3HA), scha_resourcegroup_get(3HA), attributes(5), rg_properties(5), rbac(5) Sun Cluster 3.2 6 Sep 2006 scha_resourcegroup_get(1HA)
All times are GMT -4. The time now is 07:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy