printenv(1B) SunOS/BSD Compatibility Package Commands printenv(1B)NAME
printenv - display environment variables currently set
SYNOPSIS
/usr/ucb/printenv [variable]
DESCRIPTION
printenv prints out the values of the variables in the environment. If a variable is specified, only its value is printed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), echo(1), sh(1), stty(1), tset(1B), attributes(5), environ(5)DIAGNOSTICS
If a variable is specified and it is not defined in the environment, printenv returns an exit status of 1.
SunOS 5.11 14 Sep 1992 printenv(1B)
How to set the display environment variable through a script?
i tried that using "setenv" but it gave me error.
is there any idea?
:confused: (19 Replies)
Hello,
I want to set some environment variables with this script:
ip=$@
echo Remote Computer: $ip
PERLDB_OPTS="CallKomodo=$ip:9000 RemotePort=$ip:9010 PrintRet=0"
export PERLDB_OPTS
PERL5LIB=/opt/komodo
export PERL5LIB
echo PERLDB_OPTS: $PERLDB_OPTS
echo PERL5LIB: $PERL5LIB
But it... (5 Replies)
Hi,
I recently encountered the notion of a 'system variable' in unix
which is displayable only via
echo $(<var>) rather than
echo $<var>
They are NOT environment variables since they can't be
set by the user - they live in a different name space,
but are 'in place' when the user... (2 Replies)
how can we determine that which scripts ,binaries, utilities or something else uses a specific environment variable?
i have an environment variable EXTRAPATH in a shell script, and i want to determine if it is used by something else or it is absolutely useless. (4 Replies)
this is what i'm trying to do...
while test -f $newFile
echo $newFile already existed, renaming.
do
variable = 000
newFile = '$newFile.$variable'
((variable += 1))
done
echo file name is now $newFile
Q - on line five, I'm trying to append the numbers to the end of the file,... (3 Replies)
Hi,
I need to write a sed that replaces the value of all environment variables that have PASS in the name with ***** . I have a log file who prints the value of all environment variables ,including those who hold passwords. In the name of these variables I found always the PASS string, ex:... (16 Replies)
this is my first post so Hello,
here is my question
@top level Makefile should not set values for
environment variables FC, CC, FFLAGS (etc) but
use the ones that mpi_make sets.
So as you can see i have to run an mpi program, in fortran and i am supposed to do the above.the program was... (3 Replies)
HI ,
In the below script I am trying to return the value of the environment variable TIBCO_HOME to the caller
#! /usr/bin/csh
set VAR_NAME=$1
echo VAR_NAME
On the aix console.. set to setenv TIBCO_HOME /app/tibco
When I execute the script... myscript.sh TIBCO_HOME, the script... (5 Replies)
Hi Guys,
I have variable as_srvr102="there is no way"
Now the srvr102 will be keep changing as srvr103,srvr104.....
I have captured the srvrs in a variable.. but when i am doing an echo.. its not returning the output..
odi001trdp01: b=srvr102
odi001trdp01: as_srvr102="there is no way"... (4 Replies)
i have two machines that should be identical but on one system there are some oracle environment (ORACLE_SID, ORACLE_HOME, etc...) variables that are not being set for the users.
I am trying to find where those environment variables are being set on the system which is working properly. All... (5 Replies)
Hey all, I am simply trying to find a listing of all of the default BASH environment variables in RHEL 5.4. Namely, I need to find what the path variable is for libraries since one of my applications doesn't see a module that it needs to run. So far I've seen $LD_PRELOAD, $LD_LIBRARY_PATH and... (4 Replies)
HI. I had an environment variable defined in my .bash_profile file and I deleted it. I opened a new terminal and looked inside .bash_profile and it's not there but when I type
printenv MYCONFIG
it reutrns what the value used to be in my .bash_profile still!! I did a grep for MYCONFIG and... (6 Replies)
Hi,
I'm facing some problem with printing the values in the variables
I have passed all the database values into the variable, but when i echo the variable i get the values printed in one line
var=`echo <query> | database`
echo $var
or
awk 'BEGIN {printf("%s\n","'"${var}"'")}'
this... (4 Replies)
Hi,
I an having some environment variables exported and the variable name is present in the file. But its not resolving with following commands. Can someone throw some light.
db $ grep -v "^#" TD_FWK_NUCLEUS.dbc | grep -v "^$" | xargs -i echo {}
wb_bin: ${TD_FWK_NUCLEUS_DBC_WB_BIN_TAG}
I... (3 Replies)