*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> env (1)              


 env(1)                                                               env(1)

 NAME    [Toc]    [Back]
      env - set environment for command execution

 SYNOPSIS    [Toc]    [Back]
      env [-] [-i] [name = value] ...  [command [arguments ...]]

 DESCRIPTION    [Toc]    [Back]
      env obtains the current environment, modifies it according to its
      arguments, then executes the command with the modified environment.
      Arguments of the form name=value are merged into the inherited
      environment before the command is executed.  The -i option causes the
      inherited environment to be ignored completely so that the command is
      executed with exactly the environment specified by the arguments.  The
      - option is obsolete and has the same effect as the -i option.

      If no command is specified, the resulting environment is printed, one
      name-value pair per line.

 RETURN VALUE    [Toc]    [Back]
      If command is invoked, the exit status of env is the exit status of
      command; otherwise, env exits with one of the following values:

           0         env completed successfully.
           1-125     env encountered an error.
           126       command was found but could not be invoked.
           127       command could not be found.

    Environment Variables
      LC_MESSAGES determines the language in which messages are displayed.

      If LC_MESSAGES is not specified in the environment or is set to the
      empty string, the value of LANG is used as a default for each
      unspecified or empty variable.  If LANG is not specified or is set to
      the empty string, a default of "C" (see lang(5)) is used instead of

      If any internationalization variable contains an invalid setting, env
      behaves as if all internationalization variables are set to "C".  See

    International Code Set Support    [Toc]    [Back]
      Single- and multi-byte character code sets are supported.

 WARNING    [Toc]    [Back]
      The - option is obsolete.  Use -i instead.

 SEE ALSO    [Toc]    [Back]
      sh(1), exec(2), profile(4), environ(5).

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003

 env(1)                                                               env(1)

      env: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
env IRIX set environment for command execution, print environment
pxeboot FreeBSD Preboot Execution Environment (PXE) bootloader
setoncenv HP-UX NFS environment configuration command
time OpenBSD time command execution
time FreeBSD time command execution
time Tru64 Times the execution of a command
rexec_r Tru64 Allow command execution on a remote host
rexec Tru64 Allow command execution on a remote host
crttrace IRIX arrange for command execution to be traced
xvfb-run Linux run specified X client or command in a virtual X server environment
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service