Hmm, unless they changed the way you set TZ in rhel 6, I just tried it on rhel 5.x and it works for me, here is the output from the script I gave above:
I am trying to install GCC-3.1.1 on an SGI Indigo2. I already have MIPSpro 7.2.1 installed. However, when I try to configure GCC-3.1.1, I get the message "cc ERROR: cc -o conftest -g failed, You must set the environment variable CC to a working compiler."
What is the name of the MIPSpro c++... (1 Reply)
I want to set a variable to be any number of dashes. Rather than doing the following:
MYVAR="------------------"
I'd like to be able to set the variable to, say, 80 dashes but don't want to have to count 80 dashes. Is there a way to do this? (2 Replies)
Hello all,
Can somebody explain to me how set up a basename and dirname variable to simplify this script. I currently have a 'infile' with the contents of FTTPDataPVC_ & BaaisDSLFeed. I need to add a basename and or dirname variable so that any additions can be made through the infile and not... (1 Reply)
Hi All,
I know to set global variable i can use export .. But take the situation like below ..
I want to set a variable in one script and access that in second script
i have done like this .. It is not working
one.sh
#!/usr/bin/ksh
echo $RISSHI
export RISSHI=1
two.sh... (3 Replies)
Hi,
I am trying to set environment variable on a remote machine. I want to do it by running a shell script
Here's what I am doin
rsh <remote-hostname> -l root "cd /opt/newclient; . ./setp.sh"
In setp.sh, I have
#############################
cd ../newlib;
export... (1 Reply)
I am working within a while loop and i am trying to set a variable that will read out each count of the files. the problem is the count variable i have set up gives me a total and not the individual count of each file. in the data area there is 4 abc.dat and 1 def.dat.
how can i do this???
... (2 Replies)
Hi All,
I'm trying to write an menu driven program to automate some functions which involve loging to multiple hosts. The hosts can differ for every use, so I thought I would use an config file to get the hostnames. Now I need to set those values in the config file to environment variable to... (6 Replies)
Hello Everyone,
I'm still trying to grasp many concepts in .ksh scripting, one of them being variables inside loops. My problem is the following:
* I'm trying to set a variable inside a while read loop to reuse it outside of said loop. My lines are the following :... (13 Replies)
The following is part of a larger shell script
grep -v "Col1" my_test.log | grep -v "-" | awk '$5 == "Y" {print $1}'
instead of printing, can I set set $1 to a variable that the rest of the shell script can read?
if $5 == Y, I want to call another shell script and pass $1 as a... (2 Replies)
Is there anyway in which i can set a permanent global variable in unix, which when initialised with a value and modified during any shell script, would retain its value even if i logout and login
I dont know whether i am being able to express my need clearly but basically what i want is a... (3 Replies)
Discussion started by: arindamlive
3 Replies
LEARN ABOUT SUNOS
timezone
timezone(4) File Formats timezone(4)NAME
timezone - default timezone data base
SYNOPSIS
/etc/timezone
DESCRIPTION
The timezone file contains information regarding the default timezone for each host in a domain. Alternatively, a single default line for
the entire domain may be specified. Each entry has the format:
Timezone-name official-host-or-domain-name
Items are separated by any number of blanks and/or TAB characters. A `#' indicates the beginning of a comment; characters up to the end of
the line are not interpreted by routines which search the file. The timezone is a pathname relative to the directory /usr/share/lib/zone-
info.
This file is not actually referenced by any system software; it is merely used as a source file to construct the NIS timezone.byname map.
This map is read by sysidtool(1M) to initialize the timezone of the client system at installation time. For more information, see the
Solaris 10 Installation Guide: Basic Installations.
The timezone file does not set the timezone environment variable TZ. See TIMEZONE(4) for information to set the TZ environment variable.
EXAMPLES
Example 1: Typical timezone line
Here is a typical line from the /etc/timezone file:
US/Eastern East.Sun.COM #Sun East Coast
FILES
/etc/timezone
SEE ALSO sysidtool(1M), TIMEZONE(4)
Solaris 10 Installation Guide: Basic Installations
SunOS 5.10 18 Feb 2003 timezone(4)