env(1) General Commands Manual env(1)Name
env - set environment for command execution
Syntax
env [-] [ name=value ] ... [ command args ]
Description
The command obtains the current environment, modifies it according to its arguments, then executes the command with the modified environ-
ment. Arguments of the form name=value are merged into the inherited environment before the command is executed. The - flag causes the
inherited environment to be ignored completely, so that the command is executed with exactly the environment specified by the arguments.
If no command is specified, the resulting environment is printed, one name-value pair per line.
See Alsosh(1), environ(5int), environ(7)env(1)
Check Out this Related Man Page
ENV(1) BSD General Commands Manual ENV(1)NAME
env -- set and print environment
SYNOPSIS
env [-i] [name=value ...] [utility [argument ...]]
DESCRIPTION
env executes utility after modifying the environment as specified on the command line. The option name=value specifies an environmental
variable, name, with a value of value. The option '-i' causes env to completely ignore the environment it inherits.
If no utility is specified, env prints out the names and values of the variables in the environment, with one name=value pair per line.
DIAGNOSTICS
If the utility is invoked, the exit status of env shall be the exit status of utility; otherwise, the env utility exits with one of the fol-
lowing values:
0 The env utility completed successfully
1-125 An error occurred in the env utility.
126 The utility specified by utility was found, but could not be invoked.
127 The utility specified by utility could not be found.
COMPATIBILITY
The historic - option has been deprecated but is still supported in this implementation.
SEE ALSO execvp(3), environ(7)STANDARDS
The env utility conforms to IEEE Std 1003.2-1992 (``POSIX.2'').
BUGS
env doesn't handle commands with equal (``='') signs in their names, for obvious reasons.
BSD August 27, 1993 BSD
I have followed instructions to get the jdk for sparc, 1.3 loaded on this sparc workstation machine. I used a tar file and everything seemed to go fine. The usr/j2se directory was created with all the subdirectories and java files. However, attempting to run Java commands fails with a file not... (18 Replies)
Greetings to all,
I have not been in a unix environment for many years, but I am back.
Question is regarding how to setup or check how it's configured is DNS on a SPARCstation 20 runing SunOS 4.1.4 2 sun4m
I have a DNS server on the network and would like the sun box to use it for it's name... (22 Replies)
Hi there,
I am wondering if by logging in to a unix system, if it is possible to get the IP address of the machine I am connecting FROM.
I know how I can do this using the name server, but is this possible without a host lookup?:confused:
Thanks,
-ghoti (15 Replies)
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 all,
We setup samba running on network for Unix and NT environment. For some reasons certain users and machine can mapped to their home directory from PC to Unix, some can't. any help or ideas will be appreciated. (13 Replies)
Dear Guys ,
i installed sun solaries 8 for intel platform .
now i want to edit root env or init. files in order to add the follwing :
EDITOR=vi
export PATH EDITOR
export PS1=`uname -n`:\$PWD\>
set -o vi
alias dir="ls -la|more"
alias c=clear
stty erase "^H"
what file i have to... (13 Replies)
hi
I unload the table results from oracle to csv file foramt.
i need increse the width of each column using unix commands
could you pl tell me how to increase the width of each column to spefic width uisng sed unix command or na other unix commands
i have file name called report.csv
inside... (38 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)
INTRODUCTION:
I'm taking a LINUX class at school and I would like to learn more about logging into another computer remotely using the secure shell (ssh). I would like to learn to do this with the computers in our lab as a self initiative so I can eventually share files between my own... (16 Replies)
Hi there,
I need urgent help with a small program that is run via shell script. Unfortunately I only understand the bare basics of shell scripting and can't figure out how to do this.
We have a program that tests the connection between 3 servers. I have a script that lets the program run on... (15 Replies)
Hi,
I am running this on Redhat 5.10
I have a simple test script called test.sh which has the following
contents and it uses the BASH shebang.
-------------------------------------------------------------
#!/bin/bash
eval `/tmp/filereader.pl /tmp/envfile.txt`
echo "TESTPATH=$TESTPATH"
... (28 Replies)
But I love my back-ticks - I know exactly how to escape them (after too many years) - I always seem to end unbalanced with ().
However, I shall take the hint. (One more trick for this dog... aka - not too old yet!) :);) (17 Replies)
First, given this bit of code (line numbers included for reference:
59 get_all_db () {
60 #echo getting all db
61 dblist=`egrep -i "product/12" /etc/oratab |grep -v "listener"|\
62 awk -F\: '{print $1}'|sort`
63 echo list is $dblist
64 echo
65 echo
66 echo "INSTANCE_NAME ... (15 Replies)
Hi Team,
I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system.
df -h | awk -v host=`hostname` '
BEGIN {
print "<table border="4"... (13 Replies)