08-10-2006
dunno. take a look at your 'locale' on the 'bad' sun - your 'LC_*' environment variables should match to the 'good' sun.
10 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
Hello,
The system reboots in single user mode
what command to use to bring the system up regularly??
I get
INIT: cannot create /var/adm/utmpx
Type control -d to proceede with a normal startup
or give root passwd for system maintaince.
either way i don't have a change and ... (1 Reply)
Discussion started by: awk
1 Replies
2. What is on Your Mind?
Welcome to "The trouble with...." with your host, ZazzyBob.
Todays offering - "The trouble with letting other people host your website"
I use a certain web hosting service, who shall of course remain nameless here.
They are running PHP 4.3.10
I decide to write a script to test their PHP... (6 Replies)
Discussion started by: zazzybob
6 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
having read lots of posts about SU I don't quiet understand this :
I'm doing regular backups of my database (u betta do) and therefore use su - username -c "sqlscript special data_base" in a unixscript which is even using cron. (yep!)
Now I need some other script, still with this... (4 Replies)
Discussion started by: nulnul7
4 Replies
4. AIX
Hi,
we currently use a valisys licence :
it is based on a server (serv1)
it is reached only by one workstation (cam1)
In all licence files there is line with cam1 et serv1
We want to use cam22 (new workstation) instead of cam1
I made a copy the licences files with remplacing cam1 by cam22... (0 Replies)
Discussion started by: cadmanager
0 Replies
5. Shell Programming and Scripting
Hi folks,
there are windows device names in the sixth column of a comma separated file. A example device name is:
\\.\Tape0
I don't get the all string in to a variable, because of the preceding backslash. The first backslash is just cut off and my attempts to manipulate the string afterward... (0 Replies)
Discussion started by: wibo1
0 Replies
6. UNIX for Dummies Questions & Answers
What is the possible cause for the mount command to take ages? im trying to mount remotely : "mount -t nfs xx.x.x.x:/export/xyz/cdrom-4.0 /mnt/cdrom" on a system using bash. Im able to ping the remote server, but the system hangs or takes about half an hour to carry out this mount command.... (4 Replies)
Discussion started by: sahilb
4 Replies
7. UNIX for Dummies Questions & Answers
Hi there, I'm new to unix-environments.
I'm richard, and i'm mostly a web-developer, under php. I've done work in unix env before, but never had my own.
Today, I've got debian 3.1 r4 from the official site, and i've attempted to install it twice.
I installed it initially as "Desktop... (0 Replies)
Discussion started by: izua
0 Replies
8. UNIX for Dummies Questions & Answers
I am trying to figure awk.
I have a file in my home directory called testawk.sh, have made it executable, and have run it... But don't see any output.
This is the contents of the file:
#!/usr/bin/awk -f
{ print " - HI -" }I enter ./testawk.sh in the prompt, press enter, and watch as the... (2 Replies)
Discussion started by: matthewden
2 Replies
9. Programming
Hey, i am having a problem
First, i know java well and i have used C++ on occasion so i thought i would be able to deal with a class where they program in C. unfortunately i have hit some speed bumps that i am having problems.
Here is my problem:
I have a structure cache_t in the sample... (0 Replies)
Discussion started by: zephoid
0 Replies
10. UNIX and Linux Applications
I am having a bit of trouble plotting a histogram in gnuplot. I am trying to use it to draw bars side by side. The first bar is from column five in my data file. The second bar is actually three bars stacked on top of each other and should be as tall as the first bar. The data is from the 2nd,... (0 Replies)
Discussion started by: kingnothing
0 Replies
LEARN ABOUT OPENSOLARIS
locale
locale(1) User Commands locale(1)
NAME
locale - get locale-specific information
SYNOPSIS
locale [-a | -m]
locale [-ck] name...
DESCRIPTION
The locale utility writes information about the current locale environment, or all public locales, to the standard output. For the purposes
of this section, a public locale is one provided by the implementation that is accessible to the application.
When locale is invoked without any arguments, it summarizes the current locale environment for each locale category as determined by the
settings of the environment variables.
When invoked with operands, it writes values that have been assigned to the keywords in the locale categories, as follows:
o Specifying a keyword name selects the named keyword and the category containing that keyword.
o Specifying a category name selects the named category and all keywords in that category.
OPTIONS
The following options are supported:
-a Writes information about all available public locales. The available locales include POSIX, representing the POSIX locale.
-c Writes the names of selected locale categories. The -c option increases readability when more than one category is selected (for
example, via more than one keyword name or via a category name). It is valid both with and without the -k option.
-k Writes the names and values of selected keywords. The implementation may omit values for some keywords; see OPERANDS.
-m Writes names of available charmaps; see localedef(1).
OPERANDS
The following operand is supported:
name The name of a locale category, the name of a keyword in a locale category, or the reserved name charmap. The named category or key-
word will be selected for output. If a single name represents both a locale category name and a keyword name in the current locale,
the results are unspecified; otherwise, both category and keyword names can be specified as name operands, in any sequence.
EXAMPLES
Example 1 Examples of the locale utility
In the following examples, the assumption is that locale environment variables are set as follows:
LANG=locale_x LC_COLLATE=locale_y
The command locale would result in the following output:
LANG=locale_x
LC_CTYPE="locale_x"
LC_NUMERIC="locale_x"
LC_TIME="locale_x"
LC_COLLATE=locale_y
LC_MONETARY="locale_x"
LC_MESSAGES="locale_x"
LC_ALL=
The command
LC_ALL=POSIX locale -ck decimal_point
would produce:
LC_NUMERIC
decimal_point="."
The following command shows an application of locale to determine whether a user-supplied response is affirmative:
if printf "%s
" "$response" | /usr/xpg4/bin/grep -Eq
"$(locale yesexpr)"
then
affirmative processing goes here
else
non-affirmative processing goes here
fi
ENVIRONMENT VARIABLES
See environ(5) for the descriptions of LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and NLSPATH.
The LANG, LC_*, and NLSPATH environment variables must specify the current locale environment to be written out. These environment vari-
ables will be used if the -a option is not specified.
EXIT STATUS
The following exit values are returned:
0 All the requested information was found and output successfully.
>0 An error occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWloc |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
localedef(1), attributes(5), charmap(5), environ(5), locale(5), standards(5)
NOTES
If LC_CTYPE or keywords in the category LC_CTYPE are specified, only the values in the range 0x00-0x7f are written out.
If LC_COLLATE or keywords in the category LC_COLLATE are specified, no actual values are written out.
SunOS 5.11 20 Dec 1996 locale(1)