Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Reference Manual

## export(1)

NAME | SYNOPSIS | DESCRIPTION | OPERANDS | EXAMPLES | EXIT STATUS | SEE ALSO

#### NAME

export– marks a variable name for automatic export to the environment of subsequent commands in multimode

#### SYNOPSIS

`export` [ name=value [ name=value]*]

#### DESCRIPTION

Marks a variable name for automatic export to the environment of subsequent commands. All subsequent commands use the variable name values as specified; unless you unset them or exit multimode. If only the variable name is specified, the current value of that variable name is displayed. If the export command is used without any arguments, a list of all the exported variables and their values is displayed. Exported shell environment variables set prior to invoking the `asadmin` utility are imported automatically and set as exported variables within `asadmin`. Unexported environment variables cannot be read by the `asadmin` utility.

#### OPERANDS

name=value

  variable name and value for automatic export to the environment to be used by subsequent commands.

#### EXAMPLES

##### Example 1 Using `export` to set an environment variable

    asadmin> export AS_ADMIN_HOST=bluestar

In this case, the `AS_ADMIN_HOST` environment variables has been set to bluestar.

##### Example 2 Using `export` to set multiple environment variables

    asadmin> export AS_ADMIN_HOST=bluestar AS_ADMIN_PORT=8000 AS_ADMIN_USER=admin AS_ADMIN_PREFIX=server1.jms-service

In this case, the environment variables have been set to: the host is bluestar, the port is 8000, the administrator user is admin, and the prefix is server1.jms-service.

##### Example 3 Using export to list environment variables

    asadmin> export
    AS_ADMIN_HOST=bluestar
    AS_ADMIN_PORT=8000
    AS_ADMIN_USER=admin
    AS_ADMIN_PREFIX=server1.jms-service

The `export` with no input lists the set environment variables.

#### EXIT STATUS

0

  command executed successfully

1

  error in executing the command

#### SEE ALSO

unset(1), multimode(1)

J2EE SDK 1.4 Last Revised 31 Jan 2005

NAME | SYNOPSIS | DESCRIPTION | OPERANDS | EXAMPLES | EXIT STATUS | SEE ALSO

- © 2010, Oracle Corporation and/or its affiliates